public partial class NormalRegistration
{
[Required]
public string Name { get; set; }
[Required]
public string Password { get; set; }
}
This is my model class.I need to compare both name and password but both should not be equal.For that how to write the validation for that?..
please tell me how to write validation?