mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
Dotnet reformat
This commit is contained in:
@@ -11,12 +11,12 @@ namespace BTCPayServer.Models.AppViewModels
|
||||
public CreateAppViewModel()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public CreateAppViewModel(AppService appService)
|
||||
{
|
||||
SetApps(appService);
|
||||
}
|
||||
|
||||
|
||||
[Required]
|
||||
[MaxLength(50)]
|
||||
[MinLength(1)]
|
||||
@@ -37,7 +37,7 @@ namespace BTCPayServer.Models.AppViewModels
|
||||
var defaultAppType = PointOfSaleAppType.AppType;
|
||||
var choices = appService.GetAvailableAppTypes().Select(pair =>
|
||||
new SelectListItem(pair.Value, pair.Key, pair.Key == defaultAppType));
|
||||
|
||||
|
||||
var chosen = choices.FirstOrDefault(f => f.Value == defaultAppType) ?? choices.FirstOrDefault();
|
||||
AppTypes = new SelectList(choices, nameof(chosen.Value), nameof(chosen.Text), chosen);
|
||||
SelectedAppType = chosen.Value;
|
||||
|
||||
Reference in New Issue
Block a user