I am writing an online evaluation form. In this form, the user must select a minimum of 3 and a maximum of 7 people who will give them a rating. I have a form where the user adds evaluators and I display a list under this form. Once the user has finished adding evaluators, click the self-assessment button to fill in their own assessment of themselves.
What I want to do is to check if the number of evaluators is really in the right range before the user leaves the page.
The model is similar to this
public class AssessorsViewModel
{
List<Assessor> Assessors { get; set; }
}
public class Assessor
{
string Email { get; set; }
string Name { get; set; }
}
I have verification attributes for the Assessor class, so every time a user adds an expert, I can check this, but I canβt figure out how to check the account in the list of evaluators.
I am using ASP.net MVC.
Thanks in advance