Dotnet reformat

This commit is contained in:
nicolas.dorier
2023-04-10 11:07:03 +09:00
parent f598c70a4f
commit 7546ef7a8e
110 changed files with 518 additions and 486 deletions

View File

@@ -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;