Ejemplo n.º 1
0
 public static string GetAdminRouteName()
 {
     return(UrlHelperExtension.GetAdminRouteName(null));
 }
Ejemplo n.º 2
0
 public static string AdminAction(this UrlHelper urlHelper, string actionName, string controllerName, string areaName, object routeValues)
 {
     return(UrlHelper.GenerateUrl(UrlHelperExtension.GetAdminRouteName(areaName), actionName, controllerName, (routeValues as RouteValueDictionary) ?? ((RouteValueDictionary)HtmlHelper.ObjectToDictionary(routeValues)), urlHelper.RouteCollection, urlHelper.RequestContext, true));
 }