private void AddPreviousPageLink(ICreateLinks links, int page, int pageSize)
 {
     if (page > 0)
     {
         this.AddLink(new PreviousPageLink(links.Create(new { page = page - 1, pageSize }), "Previous Page"));
     }
 }
 private void AddNextPageLink(ICreateLinks links, int page, int pageSize)
 {
     if (page < this.TotalPages - 1)
     {
         this.AddLink(new NextPageLink(links.Create(new { page = page + 1, pageSize }), "Next page"));
     }
 }
 private void AddSelfLink(ICreateLinks links, int page, int pageSize)
 {
     this.AddLink(new SelfLink(links.Create(new { page, pageSize })));
 }