Yes it will work. You just need to set data annotation attributes for your required class members.
[Required(ErrorMessage = "first name is required")]
public string First { get; set; }
Note that you only need to set the data annotation for the member only First Name. No need to set data annotation on PersonmemberName
source
share