/// <summary>
 /// Add clinic execute
 /// </summary>
 private void AddClinicExecute()
 {
     try
     {
         AddClinicView addClinicView = new AddClinicView();
         addClinicView.ShowDialog();
         if ((addClinicView.DataContext as AddClinicViewModel).IsUpdateClinic == true)
         {
             ClinicList = service.GetAllClinics().ToList();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
 public AddClinicViewModel(AddClinicView addOpen, tblClinic editClinic)
 {
     addClinicView = addOpen;
     Clinic        = editClinic;
     ClinicList    = service.GetAllClinics().ToList();
 }
 public AddClinicViewModel(AddClinicView addOpen)
 {
     addClinicView = addOpen;
     Clinic        = new tblClinic();
     ClinicList    = service.GetAllClinics().ToList();
 }