public void DeleteSubject() { if (SelectedSubject != null) { SelectedSubject.Delete(); GetSubjects(); } }