Tag: validation
Pass the Data to Custom Validation attribute in MVC C#
How to Pass the Data to Custom Validation attribute in MVC C#? Introduction .Net provides the capability of validating model data with validation attributes like Required, Compare, Regular Expression, and user-defined custom attributes (also known as data annotations C#). MVC
Validation vs. Application Rules In CakePHP
CakePHP uses a two-layered approach to validation: 1. Validation It determines basic validity. It ensures that the data types, size, and format of data are correct. When we call newEntity() or patchEntity() methods, validations are triggered. For example, checking if
Authorization Attribute Validation Issue
Authorization attribute validation Issue: 404 status code is returned instead of 401 status code In my application, I was using an API service to be used by external applications, where I needed to implement the authorization of valid requests by