public static string WithDefaultModel <TController>(this UrlForCreateBuilder <TController> url) where TController : Controllers.IHaveCreateMethod <CrudCreateModel>, IController { return(url.Url.Action <TController>(c => c.Create(null))); }
public static string WithoutModel <TController>(this UrlForCreateBuilder <TController> url) where TController : Controllers.IHaveCreateMethod, IController { return(url.Url.Action <TController>(c => c.Create())); }
public static string WithModel <TController, TCreateGetModel>(this UrlForCreateBuilder <TController> url, TCreateGetModel model) where TController : Controllers.IHaveCreateMethod <TCreateGetModel>, IController { return(url.Url.Action <TController>(c => c.Create(model))); }