ASP.NET Core MVC uses number of built-in filters like Authorization, Resource, Action, Exception, and Result filters. Filters help you to remove repetitive code by injecting them at certain stages of the request pipeline.
Action filters execute custom code before and after execution of the Action method in sepecific sequence. You can inject filter execution using ASP.NET Core MVC dependency injection.
- Authorization filters
- Resource filters
- Action filters
- Exception filters
- Result filters
For more details please visit - How to use ASP.NET Core MVC built in filters
You can have code view - Create ASP.NET MVC Core Filters