namespace LaaProduction.SharedModels { using System; using System.ComponentModel.DataAnnotations; public class UserChangePasswordModel { [Required(AllowEmptyStrings = false)] public String OldPassword { get; set; } [Required(AllowEmptyStrings = false)] public String NewPassword { get; set; } [Required(AllowEmptyStrings = false)] [Compare(nameof(NewPassword), ErrorMessage = "Password and password confirmation did not match.")] public String ConfirmPassword { get; set; } } }