Example #1
0
        public IQueryable <T> ApplyApiQueryOption(IApiQueryOption queryOption, IQueryable <T> queryResult)
        {
            if (_paginationService != null)
            {
                queryResult = ApplyFilter(queryOption.Where, queryResult);
                queryResult = _paginationService.Order(queryResult, queryOption);
                queryResult = _paginationService.SetHeader(queryResult, queryOption);
                queryResult = _paginationService.Pagination(queryResult, queryOption);
            }

            return(queryResult);
        }