public static MvcHtmlString AbsoluteRouteLink(this HtmlHelper htmlHelper, string linkText, string routeName, RouteValueDictionary routeValues, IDictionary <string, object> htmlAttributes) { return(UrlHelperExtensions.AbsoluteRoute <MvcHtmlString>( htmlHelper.RouteCollection, new HttpContextWrapper(HttpContext.Current), routeName, routeValues, (r, s, d) => htmlHelper.RouteLink(linkText, routeName, s, d, null, r, htmlAttributes))); }
public static string AbsoluteRouteUrl(UrlHelper helper, HttpContextBase context, string routeName, RouteValueDictionary routeValues) { return(UrlHelperExtensions.AbsoluteRoute <string>( helper.RouteCollection, context, routeName, routeValues, (r, s, d) => helper.RouteUrl(routeName, r, s, d))); }