I would like to remove the validation of a specific property in ASP.NET Core Model for a specific action only like edit.
For Ex:
public class User {
    [Key]
    public Guid User_ID { get; set; } 
    [Required]
    [Display(Name = "Username")]
    public string User_name { get; set; }
    [Required]
    [DataType(DataType.Password)]
    public string Password { get; set; }        
    [DataType(DataType.PhoneNumber)]
    public string Mobile_No { get; set; }
}
Here in the above template of the model, I want to remove the validation for the password property in Edit action because i don't want to update that in the particular action.
 
    