Validations in MVC

  Data Annotations help us to validate any properties in the model in MVC. Data annotations are nothing but attributes which can be applied on model properties. For example, in the below code snippet we have a simple Employee class with a property EmployeeCode. This EmployeeCode property is tagged with a Required data annotation attribute. Which mean EmployeeCode is […]

Read More