示例#1
0
        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);
        }
示例#2
0
 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"));
 }