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, string moduleName, RouteValueDictionary arguments)
 {
     return(helper.Action(actionName, controllerName, AreaHelpers.GetRouteViewDictionary(areaName, moduleName, arguments)));
 }
Example #3
0
 public static MvcForm ModularBeginForm(this HtmlHelper helper, string actionName, string controllerName, string areaName, string moduleName, FormMethod method, object arguments, object htmlAttributes)
 {
     return(helper.BeginForm(actionName, controllerName, AreaHelpers.GetRouteViewDictionary(areaName, moduleName, arguments), method, LinkExtensions.GetHtmlAttributes(htmlAttributes)));
 }
 public static void ModularRenderAction(this HtmlHelper helper, string actionName, string controllerName, string areaName, string moduleName, RouteValueDictionary arguments)
 {
     helper.RenderAction(actionName, controllerName, AreaHelpers.GetRouteViewDictionary(areaName, moduleName, arguments));
 }