@{
var controllerName = ViewContext.RouteData.Values["controller"]==null?"":ViewContext.RouteData.Values["controller"].ToString();
}
@{
var controllerName = ViewContext.RouteData.Values["controller"]==null?"":ViewContext.RouteData.Values["controller"].ToString();
}
转载于:https://www.cnblogs.com/LYunF/archive/2013/02/21/2920872.html