private void UpdatePatientExecute()
 {
     Patient.DoctorId = selectedDoctor.DoctorId;
     try
     {
         if (service.AddPatient(Patient) != null)
         {
             isUpdatePatient = true;
             OnPropertyChanged("ViewComBox");
             OnPropertyChanged("ViewRequest");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
        private void SaveExecute(object parametar)
        {
            var passwordBox = parametar as PasswordBox;
            var password    = passwordBox.Password;

            Patient.PatientPassword = password;
            try
            {
                if (service.AddPatient(Patient) != null)
                {
                    isUpdatePatient = true;

                    PatientWindow window = new PatientWindow(Patient);
                    window.Show();
                    addPatientWindow.Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }