//Delete private void ExecuteDeletePatientsCommand() { MessageBoxResult res = MessageBox.Show("Are you sure want to delete?", "Confirmation!", MessageBoxButton.YesNo, MessageBoxImage.Question); if (res == MessageBoxResult.Yes) { _dataService.DeletePatient(Selected); PatientsViewModel.UpdatePatients(); } }
private void ExecuteEditPatientsCommand() { _dataService.EditPatient(EditedPatient, Selected, SelectedFacility); PatientsViewModel.UpdatePatients(); }