title: Get Action name from URL inside ActionFilterAttribute
body: <p>I am writing custom filter attribute inherited from <code>ActionFilterAttribute</code> class in <code>ASP.Net MVC</code>. I want to get name of action from url, I tried</p>
  
  <pre><code>ControllerContext controllerContext = new ControllerContext();
  controllerContext.RouteData.Values["action"].ToString();
  </code></pre>
  
  <p>but there is no item in <code>controllerContext.RouteData.Values</code>, hence giving me null reference error. Is any other way to get the same?</p>