title: Run code when action is called in specific controller asp.net core
body: <p>Say for example I have an admin controller and I want to perform additional custom checks when the user who calls any of the actions of the admin controller.</p>
  
  <p>How do I execute some code within the controller class when any action is called for the controller only?</p>