/// <summary> /// Applies paging to the specified query given the search criteria current page and page size. /// </summary> /// <param name="source">The source.</param> /// <param name="searchCriteria">The search criteria.</param> /// <returns>IQueryable<T>.</returns> protected virtual IQueryable <T> ApplyPaging <T>(IQueryable <T> source, TCriteria searchCriteria) where T : class { return(_queryBuilder.ApplyPaging(source, searchCriteria)); }
/// <summary> /// Applies paging to the specified query given the search criteria current page and page size. /// </summary> /// <param name="source">The source.</param> /// <param name="searchCriteria">The search criteria.</param> /// <returns>IQueryable<T>.</returns> protected virtual IQueryable <TSummery> ApplyPaging(IQueryable <TSummery> source, TCriteria searchCriteria) { return(_queryBuilder.ApplyPaging(source, searchCriteria)); }