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