In the Repository there is a GetPagedList method.
I have a method that expects a return of PagedList
I currently have
return _repository.GetPaged(sortBy, pageNumber, 20);
However I now need to do some checking such as
_repository.GetPaged(sortBy, pageNumber, 20).Where(x => x.IsAdmin == false)
This now changes type to IEnumerable. I have tried doing a Cast>() but that doesn't work either.
Any help appreciated!