private void CreateLinksForConcepts( LinkedResourceBaseDto wrapper, string orderBy, string searchTerm, YesNoBothValueType active, int pageNumber, int pageSize, bool hasNext, bool hasPrevious) { wrapper.Links.Add( new LinkDto( _linkGeneratorService.CreateConceptsResourceUri(ResourceUriType.Current, orderBy, searchTerm, active, pageNumber, pageSize), "self", "GET")); if (hasNext) { wrapper.Links.Add( new LinkDto( _linkGeneratorService.CreateConceptsResourceUri(ResourceUriType.NextPage, orderBy, searchTerm, active, pageNumber, pageSize), "nextPage", "GET")); } if (hasPrevious) { wrapper.Links.Add( new LinkDto( _linkGeneratorService.CreateConceptsResourceUri(ResourceUriType.PreviousPage, orderBy, searchTerm, active, pageNumber, pageSize), "previousPage", "GET")); } }