private PatientIdentifierDto CreateLinks(PatientIdentifierDto dto) { dto.Links.Add(new LinkDto(_linkGeneratorService.CreateResourceUri("Patient", dto.Id), "self", "GET")); dto.Links.Add(new LinkDto(_linkGeneratorService.CreateNewAppointmentForPatientResourceUri(dto.Id), "newAppointment", "POST")); dto.Links.Add(new LinkDto(_linkGeneratorService.CreateNewEnrolmentForPatientResourceUri(dto.Id), "newEnrolment", "POST")); return(dto); }
private void CreateLinks(PatientExpandedDto mappedPatient) { mappedPatient.Links.Add(new LinkDto(_linkGeneratorService.CreateResourceUri("Patient", mappedPatient.Id), "self", "GET")); mappedPatient.Links.Add(new LinkDto(_linkGeneratorService.CreateNewAppointmentForPatientResourceUri(mappedPatient.Id), "newAppointment", "POST")); mappedPatient.Links.Add(new LinkDto(_linkGeneratorService.CreateNewEnrolmentForPatientResourceUri(mappedPatient.Id), "newEnrolment", "POST")); }