Exemplo n.º 1
0
        public ActionResult getPhysicianById(MedicalRegistryForCreateDTO dto)
        {
            var physician = _technicianRepo.getById(dto.Technician.Id);


            return(Ok(physician));
        }
Exemplo n.º 2
0
 public void _createRegistry(MedicalRegistryForCreateDTO dto)
 {
     new MedicalRegistryBuilder()
     .withMedicalRecordId(dto.PatientId)
     .withPatient(dto.PatientId)
     .withHealthCareProvider(dto.HealthCareProviderId)
     .withDate(dto.DateOfAttendance)
     .withSummary(dto.Summary)
     .Build();
     _uow.Commit();
 }
Exemplo n.º 3
0
        public void _updateRegistry(MedicalRegistryForCreateDTO dto)
        {
            var dbRegistry = _uow.MedicalRegistryRepository.getById(dto.Id);

            _uow.DetectChanges();
        }