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