using System; using System.ComponentModel.DataAnnotations; namespace Yavsc.Model.RolesAndMembers { /// /// Change password model. /// public class ChangePasswordModel { /// /// Gets or sets the username. /// /// The username. [Required(ErrorMessage = "Please, enter your user name")] public string Username { get; set; } /// /// Gets or sets the old password. /// /// The old password. [Required(ErrorMessage = "Please, enter your old Password")] public string OldPassword { get; set; } /// /// Gets or sets the new password. /// /// The new password. [Required(ErrorMessage = "Please enter a new Password")] public string NewPassword { get; set; } /// /// Gets or sets the confirm password. /// /// The confirm password. [Required(ErrorMessage = "Please confirm the new Password")] public string ConfirmPassword { get; set; } } }