mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Create store: Add default currency and rate provider fields
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user