//public static MvcHtmlString RouteLinkEx(this HtmlHelper htmlHelper, string linkText, string routeName, string protocol, string hostName, string fragment, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes) { return RouteLinkEx(htmlHelper, x => linkText, routeName, protocol, hostName, fragment, routeValues, htmlAttributes); } public static MvcHtmlString RouteLinkEx(this HtmlHelper htmlHelper, Func <IDynamicNode, string> linkText, string routeName, string protocol, string hostName, string fragment, RouteValueDictionary routeValues, IDictionary <string, object> htmlAttributes) { return(MvcHtmlString.Create(HtmlHelperEx.GenerateRouteLink(htmlHelper.ViewContext.RequestContext, htmlHelper.RouteCollection, linkText, routeName, protocol, hostName, fragment, routeValues, htmlAttributes))); }
//public static MvcHtmlString ActionLinkEx(this HtmlHelper htmlHelper, string linkText, string actionName, string controllerName, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes) { return ActionLinkEx(htmlHelper, x => linkText, actionName, controllerName, routeValues, htmlAttributes); } public static MvcHtmlString ActionLinkEx(this HtmlHelper htmlHelper, Func <IDynamicNode, string> linkText, string actionName, string controllerName, RouteValueDictionary routeValues, IDictionary <string, object> htmlAttributes) { return(MvcHtmlString.Create(HtmlHelperEx.GenerateLink(htmlHelper.ViewContext.RequestContext, htmlHelper.RouteCollection, linkText, null, actionName, controllerName, routeValues, htmlAttributes))); }