public async void DeleteAppointmentPatient() { object result = await DialogHost.Show(new DeleteMessageBox(), "RootDialog"); if (result.Equals(true)) { // Delete Logic Here HospitalDB.DeletePatient(PatientID); Hospital.DeletePatient(PatientID); Home.ViewModel.Content = new PatientsViewModel(); } }
public async void DeleteResidentPatient() { object result = await DialogHost.Show(new DeleteMessageBox(), "RootDialog"); if (result.Equals(true)) { Hospital.DeletePatient(PatientID); HospitalDB.DeletePatient(PatientID); Home.ViewModel.CloseRootDialog(); Home.ViewModel.Content = new PatientsViewModel(); } }