I seem to be having a difficult getting something that should be easy. From within my view, using Razor, I\'d like to get the name of the current controller. For example, if
@HttpContext.Current.Request.RequestContext.RouteData.Values["controller"].ToString();
MVC 3
@ViewContext.Controller.ValueProvider.GetValue("controller").RawValue
MVC 4.5 Or MVC 5
@ViewContext.RouteData.Values["controller"].ToString();