Exemplo n.º 1
0
        public DepartmentDTO GetDepartment()
        {
            GHRepository <Department> repoDepart = new GHRepository <Department>();

            return(DTOConverter.Convert <Department, DepartmentDTO>(repoDepart.FindById(DepartmentId)));
        }
Exemplo n.º 2
0
        public NurseDTO GetNurse()
        {
            GHRepository <Nurse> nurse = new GHRepository <Nurse>();

            return(DTOConverter.Convert <Nurse, NurseDTO>(nurse.FindById(NurseId)));
        }
Exemplo n.º 3
0
        public PatientDTO GetPatient()
        {
            GHRepository <Patient> patient = new GHRepository <Patient>();

            return(DTOConverter.Convert <Patient, PatientDTO>(patient.FindById(PatientId)));
        }
Exemplo n.º 4
0
        public NoteDTO GetNote()
        {
            GHRepository <Note> note = new GHRepository <Note>();

            return(DTOConverter.Convert <Note, NoteDTO>(note.FindById(NoteId)));
        }
Exemplo n.º 5
0
        public DoctorDTO GetDoctor()
        {
            GHRepository <Doctor> doctor = new GHRepository <Doctor>();

            return(DTOConverter.Convert <Doctor, DoctorDTO>(doctor.FindById(DoctorId)));
        }