I have a variable length list of person models that I use @Html.EditorFor to generate a form for.
public class Person
{
public string First { get; set; }
public string Last { get; set; }
}
What would be the best way to validate that no person objects have the same first and last name?
The following is a minimal implementation of validating that no 2 items in a
Personcollection are the same: