private void CreateLinksForOutstandingVisitReport( LinkedResourceBaseDto wrapper, int pageNumber, int pageSize, bool hasNext, bool hasPrevious) { wrapper.Links.Add( new LinkDto( _linkGeneratorService.CreateOutstandingVisitReportResourceUri(ResourceUriType.Current, pageNumber, pageSize), "self", "GET")); if (hasNext) { wrapper.Links.Add( new LinkDto( _linkGeneratorService.CreateOutstandingVisitReportResourceUri(ResourceUriType.NextPage, pageNumber, pageSize), "nextPage", "GET")); } if (hasPrevious) { wrapper.Links.Add( new LinkDto( _linkGeneratorService.CreateOutstandingVisitReportResourceUri(ResourceUriType.PreviousPage, pageNumber, pageSize), "previousPage", "GET")); } }