2017-09-13 23:50:36 +09:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2022-01-20 17:35:25 +01:00
|
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
2017-09-13 23:50:36 +09:00
|
|
|
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
|
|
{
|
|
|
|
public class CreateStoreViewModel
|
|
|
|
{
|
2017-10-27 17:53:04 +09:00
|
|
|
[Required]
|
|
|
|
[MaxLength(50)]
|
|
|
|
[MinLength(1)]
|
2022-01-20 17:35:25 +01:00
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
[MaxLength(10)]
|
|
|
|
[Display(Name = "Default currency")]
|
|
|
|
public string DefaultCurrency { get; set; }
|
|
|
|
|
|
|
|
[Display(Name = "Preferred Price Source")]
|
|
|
|
public string PreferredExchange { get; set; }
|
2023-01-06 14:18:07 +01:00
|
|
|
|
2022-01-20 17:35:25 +01:00
|
|
|
public SelectList Exchanges { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
}
|
2017-09-13 23:50:36 +09:00
|
|
|
}
|