28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
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; }
|
|
}
|
|
} |