demo20230512/ViewModels/ProfileViewModel.cs

28 lines
1.1 KiB
C#
Raw Permalink Normal View History

2023-05-12 10:20:28 +08:00
using Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Weee.ViewModels
{
public class ProfileViewModel
{
[Display(Name = "UserName", ResourceType = typeof(Resource))]
[Required(ErrorMessageResourceType = typeof(Resource),
ErrorMessageResourceName = "RequiredMessage")]
public string Name { get; set; }
[EmailAddress]
[Display(Name = "UserEmail", ResourceType = typeof(Resource))]
[Required(ErrorMessageResourceType = typeof(Resource),
ErrorMessageResourceName = "RequiredMessage")]
public string Email { get; set; }
[Display(Name = "UserJob", ResourceType = typeof(Resource))]
public string Job { get; set; }
[Display(Name = "UserPhoneNumber", ResourceType = typeof(Resource))]
public string PhoneNumber { get; set; }
[Display(Name = "UserMobileNumber", ResourceType = typeof(Resource))]
public string MobileNumber { get; set; }
}
}