public static PaginationResult <T> CreateResultFromCurrentPage(List <T> results, Pagination currentPage)
 {
     return(new PaginationResult <T>(results, results.Count == 0 ? null : currentPage.GetNextPage(), currentPage));
 }
 public PaginationResult(List <T> results, Pagination nextPage, Pagination previousPage)
 {
     Results      = results;
     NextPage     = nextPage;
     PreviousPage = previousPage;
 }