Example #1
0
 public static ISpecificationWithOrdering <T> TakePage <T>(
     this ISpecificationWithOrdering <T> specification,
     int pageNumber,
     int pageSize)
 {
     return(specification
            .TakePage(new PaginationExpression(pageSize, pageNumber)));
 }
Example #2
0
 public static ISpecificationWithOrdering <T> TakeAll <T>(
     this ISpecificationWithOrdering <T> specification)
 {
     return(specification
            .TakePage(null));
 }