public ActionResult getPhysicianById(MedicalRegistryForCreateDTO dto) { var physician = _technicianRepo.getById(dto.Technician.Id); return(Ok(physician)); }
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(); }
public void _updateRegistry(MedicalRegistryForCreateDTO dto) { var dbRegistry = _uow.MedicalRegistryRepository.getById(dto.Id); _uow.DetectChanges(); }