public void Execute(object parameter) { // Delete from catalog _catalog.Delete(_viewModel.StudentItemViewModelSelected.DomainObject.Key); // Set selection to null _viewModel.StudentItemViewModelSelected = null; // Refresh the item list _viewModel.RefreshStudentItemViewModelCollection(); }
private void DeleteStudent() { _studentCatalog.Delete(_selectedStudent.Student_ID); OnPropertyChanged(nameof(Students)); }
public override void Execute(object parameter) { _catalog.Delete(_catalog.SelectedStudent.Name); }