btcpayserver/BTCPayServer/Models/ManageViewModels/IndexViewModel.cs
2017-10-27 17:53:04 +09:00

37 lines
718 B
C#

using BTCPayServer.Validations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace BTCPayServer.Models.ManageViewModels
{
public class IndexViewModel
{
public string Username { get; set; }
[Required]
[EmailAddress]
[MaxLength(50)]
public string Email
{
get; set;
}
public bool IsEmailConfirmed { get; set; }
[Phone]
[Display(Name = "Phone number")]
[MaxLength(50)]
public string PhoneNumber { get; set; }
public string StatusMessage
{
get; set;
}
}
}