Filters is basically used for authentication, authorization, validate or errors log before and after a controller action executes. Different Types of Filters Are Available i.e. 1. Actions Filter 2. Authorization filters 3. Result filters 4. Exception filters Action Filters - Action filters are used to implement logic that gets executed before and after a controller action executes. The Action filters have following - 1. Output Cache- Used for caches the output of a controller action for a specified amount of time. 2. Handle Error - Used for handles raised errors when a controller action executes. 3. Authorize – Used to enables you to restrict access to a particular user role and its permission. Example for Output Cache – [ HttpGet ] O...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers