title: How to prevent action execution in OnActionExecuting of class that is inhereted from the Controller
body: <p>I need to check some conditions from request before action and decide whether to perform the action or not. I need this for all the actions of controller. For this, I make base controller inherited from standart MVC Controller class. </p>
  
  <pre><code>public abstract class BaseController : Controller
  {
       public override void OnActionExecuting(ActionExecutingContext context)
       {
  
             //some code
             ...
             if(condition)
             {
               //not executeAction
             }
             base.OnActionExecuting(context);              
  
  }
  </code></pre>