Action filters are useful when we want to inject some logic before or after action method executes. for example want to check if user is authenticated or not we can use [Authorize] attribute.