If I have a model;
Name
[Required]
FirstName
[Required]
LastName
If I create the model in my jQuery postback thus;
Name name = new Name{ FirstName = param1, LastName = param2 };
Is there a way I can validate it using the data annotations that decorate the fields?
This is not happening in a postback event on the view, it's happening within a jQuery postback
thanks