Is it possible to use [Required] attribute in model, but not in controller.
For example I want to use object in which I will set several parameters, and for the class of this object I want to set attribute [Required].
Is it possible to use logic like ModelState.IsValid or something like it.
Here is an example of code: EmployeeModel employee = this.ToObject(employeeXml);
Employee model has property Name. This property is required. How to verify it?
Regards, Sergey.