/// <summary> /// Actions the link. /// </summary> /// <param name="htmlHelper">The HTML helper.</param> /// <param name="model">The model.</param> /// <param name="htmlAttributes">The HTML attributes.</param> /// <returns></returns> public static MvcHtmlString ActionLink(this HtmlHelper htmlHelper, IPage model, object htmlAttributes) { return(htmlHelper.ActionLink(model.Metadata.Name, model, htmlAttributes)); }
/// <summary> /// Actions the link. /// </summary> /// <param name="htmlHelper">The HTML helper.</param> /// <param name="model">The model.</param> /// <returns></returns> public static MvcHtmlString ActionLink(this HtmlHelper htmlHelper, IPage model) { return(htmlHelper.ActionLink(model.Metadata.Name, model)); }
/// <summary> /// Actions the specified URL helper. /// </summary> /// <param name="urlHelper">The URL helper.</param> /// <param name="actionName">Name of the action.</param> /// <param name="model">The model.</param> /// <returns></returns> public static string Action(this UrlHelper urlHelper, string actionName, IPage model) { return(urlHelper.Action(actionName, new { currentPage = model })); }
/// <summary> /// Actions the specified URL helper. /// </summary> /// <param name="urlHelper">The URL helper.</param> /// <param name="model">The model.</param> /// <returns></returns> public static string Action(this UrlHelper urlHelper, IPage model) { return(urlHelper.Action("index", new { currentPage = model })); }
/// <summary> /// Actions the link. /// </summary> /// <param name="htmlHelper">The HTML helper.</param> /// <param name="linkText">The link text.</param> /// <param name="model">The model.</param> /// <param name="htmlAttributes">The HTML attributes.</param> /// <returns></returns> public static MvcHtmlString ActionLink(this HtmlHelper htmlHelper, string linkText, IPage model, object htmlAttributes) { return(htmlHelper.ActionLink(linkText, "index", new { currentPage = model }, htmlAttributes)); }
/// <summary> /// Actions the link. /// </summary> /// <param name="htmlHelper">The HTML helper.</param> /// <param name="linkText">The link text.</param> /// <param name="model">The model.</param> /// <returns></returns> public static MvcHtmlString ActionLink(this HtmlHelper htmlHelper, string linkText, IPage model) { return(htmlHelper.ActionLink(linkText, model, null)); }