Пример #1
0
 public static IQueryable <TModel> TakePage <TModel>(this IQueryable <TModel> source, PagingOptions paging)
 {
     return(paging != null?paging.TakePage(source) : source);
 }
Пример #2
0
 public IAppQuery <TModel> SetPageOptions(int current, int size)
 {
     Paging = new PagingOptions(current, size);
     return(this);
 }