Is there a way to use HttpContext or the View context to get the current action name?
I can get the controller name using
var routeValues = Http
ViewContext.RouteData.Values["action"]
As far as I know, ViewContext.RouteData.Values will never be null and will always have the keys "controller" and "action". Please correct me if I am wrong.