public static string ClientDetail(this UrlHelper url, IClient c) { return(url.Action(_clientDetailAction, ControllerHelper.Controller(NavSection.Portfolio), clientDetailRouteValues(c))); }
public static MvcHtmlString MainNavListItem(this HtmlHelper html, NavSection thisSection, NavSection activeSection, string linkClass = null) { return(MvcHtmlString.Create(string.Format("<li class=\"{0}\">{1}</li>", activeSection == thisSection ? "active" : "", html.ActionLink(ControllerHelper.Text(thisSection), "Index", ControllerHelper.Controller(thisSection), null, new { title = ControllerHelper.Controller(thisSection), @class = linkClass })))); }