Beispiel #1
0
 /// <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));
 }
Beispiel #2
0
 /// <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));
 }
Beispiel #3
0
 /// <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 }));
 }
Beispiel #4
0
 /// <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 }));
 }
Beispiel #5
0
 /// <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));
 }
Beispiel #6
0
 /// <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));
 }