A simple abstraction for paginated and non-paginated results