How to Pass the Data to Custom Validation attribute in MVC C#?
.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 .net provides the built-in Read more…
CakePHP uses a two-layered approach to 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 an email address Read more…
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 validating the supplied token in the Read more…