Esempio n. 1
0
 public static QueryResponse <T> ToQueryResponse <T>(this IEnumerable <T> values, long?offset, long?total)
 {
     return(ResponseFactory.OkQuery(values, offset, total));
 }
Esempio n. 2
0
 public static QueryResponse <TResult> ToQueryResponse <TSource, TResult>(this IEnumerable <TSource> values, Func <TSource, TResult> selector, long?offset, long?total)
 {
     return(ResponseFactory.OkQuery(values.Select(selector), offset, total));
 }
Esempio n. 3
0
 public static QueryResponse <TResult> ToQueryResponse <TSource, TResult>(this ICollection <TSource> values, Func <TSource, TResult> selector, PagedRequest pagedRequest)
 {
     return(ResponseFactory.OkQuery(values.Page(pagedRequest).Select(selector), pagedRequest?.Start, values.Count));
 }
Esempio n. 4
0
 public static QueryResponse <T> ToQueryResponse <T>(this ICollection <T> values, PagedRequest pagedRequest)
 {
     return(ResponseFactory.OkQuery(values.Page(pagedRequest), pagedRequest?.Start, values.Count));
 }