mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
26 lines
649 B
C#
26 lines
649 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
{
|
|
public class CreateStoreViewModel
|
|
{
|
|
public bool IsFirstStore { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(50)]
|
|
[MinLength(1)]
|
|
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; }
|
|
|
|
public SelectList Exchanges { get; set; }
|
|
}
|
|
}
|