title: ASP.NET MVC: Call one controller action from another, with ActionFilters applied
body: <p>Take a look at the code below.</p>
  
  <p>When <code>Get()</code> calls <code>Foobar()</code> and <code>Foobaz()</code>, the <code>ActionFilter</code>s that decorate <code>Foobar()</code> and <code>Foobaz()</code> are not invoked.</p>
  
  <p>How can I call these other two controller actions from within <code>Get()</code> in a way that also causes the <code>SomeAction</code> and <code>AnotherAction</code> filters to execute? </p>
  
  <pre><code>public class Features : Controller
  {
      [SomeAction]
      public bool Foobar(string id = null)
      {
          return true;
      }
  
      [AnotherAction]
      public bool Foobaz()
      {
          return false;
      }
  
      public JsonResult Get()
      {
          return this.JsonResult(new Dictionary&lt;string, bool&gt;() 
          {
              { "foobar", this.Foobar() },
              { "foobaz", this.Foobaz() }
          });
      }
  }
  </code></pre>