3,068 views
While the ApiController attribute (which we include in the classes we define as controllers) performs some validations for models, it does not cover all validation scenarios. In models, we can include Data Annotations, which are attributes that provide validation rules for properties.