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