/// <summary> /// Pages the <paramref name="query"/> results using a cached request object to obtain the paging parameters. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="query"></param> /// <param name="search"></param> /// <returns></returns> public static IQueryable <T> Paginate <T>(this IQueryable <T> query, IGenericSearch search) { return(search.Paginate(query)); }
/// <summary> /// Pages the <paramref name="query"/> results using the provided request object to obtain the paging parameters. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="query"></param> /// <param name="search"></param> /// <param name="request"></param> /// <returns></returns> public static IQueryable <T> Paginate <T>(this IQueryable <T> query, IGenericSearch search, object request) { return(search.Paginate(query, request)); }