private void AddSubjectButton_Click(object sender, EventArgs e) { try { itemsRepository.AddSubject(subjectTitleTextBox.Text, Global.UserID, grupesComboBox.Text); } catch { throw new Exception("Subject was not added"); } }
private void AddSubjectButton_Click(object sender, EventArgs e) { try { itemsRepository.AddSubject(subjectTitleTextBox.Text, Global.UserID, grupesComboBox.Text); } catch { throw new Exception("Subject was not added"); } }