private IQueryable <ApplicantDto> GetNewNewApplicants(IQueryable <ApplicantDto> NewApplicants, PagingParameterModel pagingparametermodel = null) { if (pagingparametermodel != null) { pagingparametermodel.ConfigurePagingParameter(NewApplicants.Count()); // Returns IQueryable of Customer after applying Paging NewApplicants = NewApplicants.OrderBy(o => o.NationalID).Skip((pagingparametermodel.pageNumber - 1) * pagingparametermodel.PageSize).Take(pagingparametermodel.PageSize); } // return(NewApplicants); }
private IQueryable <TripDetailsDto> GetRequests(IQueryable <TripDetailsDto> AllRequests, PagingParameterModel pagingparametermodel = null) { if (pagingparametermodel != null) { pagingparametermodel.ConfigurePagingParameter(AllRequests.Count()); // Returns IQueryable of Customer after applying Paging AllRequests = AllRequests.OrderBy(o => o.RequestID).Skip((pagingparametermodel.pageNumber - 1) * pagingparametermodel.PageSize).Take(pagingparametermodel.PageSize); } // return(AllRequests); }