Exemplo n.º 1
0
 public static string WithDefaultModel <TController>(this UrlForCreateBuilder <TController> url)
     where TController : Controllers.IHaveCreateMethod <CrudCreateModel>, IController
 {
     return(url.Url.Action <TController>(c => c.Create(null)));
 }
Exemplo n.º 2
0
 public static string WithoutModel <TController>(this UrlForCreateBuilder <TController> url)
     where TController : Controllers.IHaveCreateMethod, IController
 {
     return(url.Url.Action <TController>(c => c.Create()));
 }
Exemplo n.º 3
0
 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)));
 }