using System.ComponentModel.DataAnnotations; namespace BusinessERP.Models.UserAccountViewModel { public class ResetPasswordViewModel { public string ApplicationUserId { get; set; } [Required] [EmailAddress] public string Email { get; set; } [Required] [Display(Name = "Old Password")] [DataType(DataType.Password)] public string OldPassword { get; set; } [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 3)] [DataType(DataType.Password)] [Display(Name = "New password")] public string NewPassword { get; set; } [Required] [DataType(DataType.Password)] [Display(Name = "Confirm password")] [Compare("NewPassword", ErrorMessage = "The password and confirmation password do not match.")] public string ConfirmPassword { get; set; } public string Code { get; set; } } }