Best practice to validate Current Password for Change Password in ViewModel with .Net MVC 3?
My ViewModel:

    public class EditViewModel
    {
        [Required]
        public string CurrentPassword { get; set; }
    
        public string NewPassword { get; set; }
                
        [Compare("NewPassword")]
        public string ConfirmNewPassword { get; set; }
    }

I'm trying to validate **CurrentPassword** field. I thought about creating a Custom Validator Attribute that connect to my database(for retrieve current password) for use with DataAnnotations.

There is a better idea?
Best practice to validate Current Password for Change Password in ViewModel with .Net MVC 3?
===

My ViewModel:

    public class EditViewModel
    {
        [Required]
        public string CurrentPassword { get; set; }
    
        public string NewPassword { get; set; }
                
        [Compare("NewPassword")]
        public string ConfirmNewPassword { get; set; }
    }

I'm trying to validate **CurrentPassword** field. I thought about creating a Custom Validator Attribute that connect to my database(for retrieve current password) for use with DataAnnotations.

There is a better idea?