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