mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
25 lines
649 B
C#
25 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; }
|
|
}
|
|
}
|