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 ViewContext.Controller.GetType().Name, but how do I get the current action (e.g. Index, Show etc.)?

11 Answers
11

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *