public static MvcHtmlString ModularActionLink(this HtmlHelper helper, string linkText, string actionName, string controllerName, string areaName, object arguments, object htmlAttributes)
 {
     return(helper.ActionLink(linkText, actionName, controllerName, AreaHelpers.GetRouteViewDictionary(areaName, AreaHelpers.GetModuleName(helper.ViewContext.RouteData), arguments), GetHtmlAttributes(htmlAttributes)));
 }
 public static MvcHtmlString ModularAction(this HtmlHelper helper, string actionName, string controllerName, string areaName, RouteValueDictionary arguments)
 {
     return(helper.Action(actionName, controllerName, AreaHelpers.GetRouteViewDictionary(areaName, AreaHelpers.GetModuleName(helper.ViewContext.RouteData), arguments)));
 }
Beispiel #3
0
 public static MvcForm ModularBeginForm(this HtmlHelper helper, string actionName, string controllerName, string areaName, FormMethod method, object arguments, object htmlAttributes)
 {
     return(helper.BeginForm(actionName, controllerName, AreaHelpers.GetRouteViewDictionary(areaName, AreaHelpers.GetModuleName(helper.ViewContext.RouteData), arguments), method, LinkExtensions.GetHtmlAttributes(htmlAttributes)));
 }
 public static void ModularRenderAction(this HtmlHelper helper, string actionName, string controllerName, string areaName, RouteValueDictionary arguments)
 {
     helper.RenderAction(actionName, controllerName, AreaHelpers.GetRouteViewDictionary(areaName, AreaHelpers.GetModuleName(helper.ViewContext.RouteData), arguments));
 }