title: Accessing ASP.NET MVC Action Parameters
body: <p>This must be simple, but I can't seem to figure it out. I am setting an action parameter inside an action filter as follows: </p>
  
  <pre><code>public class MyFilter : ActionFilterAttribute
  {
      public override void OnActionExecuting (ActionExecutingContext filterContext)
      {
          filterContext.ActionParameters["MyParam"] = "MyValue";
      }
  }
  </code></pre>
  
  <p>I am applying the filter to an entire controller as follows: </p>
  
  <pre><code> [MyFilter]
   public class HomeController : Controller
   {
        public ActionResult Index()
        {
             // How do I access MyParam here?
             return View();
        }
   }
  </code></pre>
  
  <p>}</p>
  
  <p>How do I access MyParam inside an action method?</p>