コード例 #1
0
 public static string WithModel <TController, TListGetModel>(this UrlForListBuilder <TController> url, TListGetModel model)
     where TController : Controllers.IAmListController <TListGetModel>, IController
 {
     return(url.OnlyBody
         ? url.Url.Action <TController>(c => c.ListBody(model))
         : url.Url.Action <TController>(c => c.List(model)));
 }
コード例 #2
0
 public static string ForReload <TController, TListGetModel, TEntity>(this UrlForListBuilder <TController> url, IListModel <TEntity, TListGetModel> model)
     where TController : Controllers.IAmListController <TListGetModel>, IController
     where TListGetModel : struct, IListGetModel
 {
     return(url.Url.Action <TController>(c => c.ListBody(model.ModelForReload())));
 }