public void ScheduleCheckup(Checkup checkup) { if (doctorService.IsDoctorFree(checkup.DoctorId, checkup.StartTime, checkup.EndTime)) { MedicalRecord medicalRecord = medicalRecordService.GetMedicalRecordById(checkup.MedicalRecordId); medicalRecord.Checkups.Add(checkup.Id); medicalRecordService.UpdateMedicalRecord(medicalRecord); checkupRepository.Save(checkup); } }
public void UpdateMedicalRecord(MedicalRecord mr) { medicalRecordService.UpdateMedicalRecord(mr); }