public static ComponentBuilder <MvcBootstrapConfig <TModel>, NavbarLink> NavbarLink <TComponent, TModel>( this BootstrapHelper <MvcBootstrapConfig <TModel>, TComponent> helper, string text, ActionResult result) where TComponent : Component, ICanCreate <NavbarLink> { return(new ComponentBuilder <MvcBootstrapConfig <TModel>, NavbarLink>(helper.GetConfig(), helper.NavbarLink(text, (string)null).GetComponent()) .SetLinkAction(result) .SetText(text)); }
public static ComponentBuilder <MvcBootstrapConfig <TModel>, NavbarLink> NavbarLink <TComponent, TModel>( this BootstrapHelper <MvcBootstrapConfig <TModel>, TComponent> helper, string text, string actionName, string controllerName, object routeValues = null) where TComponent : Component, ICanCreate <NavbarLink> { return(new ComponentBuilder <MvcBootstrapConfig <TModel>, NavbarLink>(helper.GetConfig(), helper.NavbarLink(text, null).GetComponent()) .SetLinkAction(actionName, controllerName, routeValues) .SetText(text)); }