Create store: Add default currency and rate provider fields

This commit is contained in:
Dennis Reimann
2022-01-20 17:35:25 +01:00
parent 723a38da68
commit c2fc099439
8 changed files with 80 additions and 47 deletions

View File

@@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace BTCPayServer.Models.StoreViewModels
{
@@ -7,9 +8,17 @@ namespace BTCPayServer.Models.StoreViewModels
[Required]
[MaxLength(50)]
[MinLength(1)]
public string Name
{
get; set;
}
public string Name { get; set; }
[Required]
[MaxLength(10)]
[Display(Name = "Default currency")]
public string DefaultCurrency { get; set; }
[Required]
[Display(Name = "Preferred Price Source")]
public string PreferredExchange { get; set; }
public SelectList Exchanges { get; set; }
}
}