title: How can I return the current action in an ASP.NET MVC view?
body: <p>I wanted to set a CSS class in my master page, which depends on the current controller and action. I can get to the current controller via <code>ViewContext.Controller.GetType().Name</code>, but how do I get the current action (e.g. <code>Index</code>, <code>Show</code> etc.)?</p>