private void AddDoctorExecute()
 {
     try
     {
         CreateDoctor create = new CreateDoctor();
         create.ShowDialog();
         if ((create.DataContext as CreateDoctorViewModel).isUpdated == true)
         {
             doctorList = Service.Service.DoctorList();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
 private void EditDoctorExecute()
 {
     try
     {
         int?         userId = doctor.userId;
         tblUser      user   = Service.Service.UserById(userId);
         CreateDoctor create = new CreateDoctor(doctor, user);
         create.ShowDialog();
         if ((create.DataContext as CreateDoctorViewModel).isUpdated == true)
         {
             doctorList = Service.Service.DoctorList();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }