public static MvcHtmlString ModularActionLink <TController>(this HtmlHelper helper, Expression <Action <TController> > expression, string linkText, object arguments, object htmlAttributes) where TController : ControllerBase
        {
            string actionName, controllerName, areaName, moduleName;

            UrlHelperExtensions.DetermineParameters <TController>(expression, helper.RouteCollection, out actionName, out controllerName, out areaName, out moduleName);
            return(ModularActionLink(helper, linkText, actionName, controllerName, areaName, moduleName, arguments, htmlAttributes));
        }
        public static MvcHtmlString ModularAction <TController>(this HtmlHelper helper, Expression <Func <TController, object> > expression, RouteValueDictionary arguments) where TController : ControllerBase
        {
            string actionName, controllerName, areaName, moduleName;

            UrlHelperExtensions.DetermineParameters <TController>(expression, helper.RouteCollection, out actionName, out controllerName, out areaName, out moduleName);
            return(ModularAction(helper, actionName, controllerName, areaName, moduleName, arguments));
        }
Beispiel #3
0
        public static MvcForm ModularBeginForm <TController>(this HtmlHelper helper, Expression <Action <TController> > expression, FormMethod method, object arguments, object htmlAttributes) where TController : ControllerBase
        {
            string actionName, controllerName, areaName, moduleName;

            UrlHelperExtensions.DetermineParameters <TController>(expression, helper.RouteCollection, out actionName, out controllerName, out areaName, out moduleName);
            return(ModularBeginForm(helper, actionName, controllerName, areaName, moduleName, method, arguments, htmlAttributes));
        }
        public static void ModularRenderAction <TController>(this HtmlHelper helper, Expression <Action <TController> > expression, RouteValueDictionary arguments) where TController : ControllerBase
        {
            string actionName, controllerName, areaName, moduleName;

            UrlHelperExtensions.DetermineParameters <TController>(expression, helper.RouteCollection, out actionName, out controllerName, out areaName, out moduleName);
            ModularRenderAction(helper, actionName, controllerName, areaName, moduleName, arguments);
        }