public void ScheduleAppointment()
 {
     if (this.checkForDuplicateAppointments())
     {
         ErrorMessage = "This Time is already occupied";
     }
     else
     {
         Appointment appObj = new Appointment(_caseViewModel.PatientID, _selectedDoctorID, getDoctorRoom(_selectedDoctorID), _appointmentDateTime, _reason, _caseViewModel.CaseID);
         _receptionist.scheduleAppointment(appObj);
     }
 }