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