public void deletePatient(PatientModel patient)
 {
     medicalRecordService.DeleteMedicalRecord(patient.MedicalRecordId);
     patientRepository.Delete(patient);
 }
 public void DeleteMedicalRecord(MedicalRecord mr)
 {
     medicalRecordService.DeleteMedicalRecord(mr);
 }