public bool removeIncident(Incident incident)
 {
     return this.incidents.Remove(incident);
 }
 public void addIncident(Incident incident)
 {
     this.incidents.Add(incident);
 }
 public static bool addIncident(Incident i)
 {
     try
     {
         incidentRepository.add(i);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.StackTrace);
         return false;
     }
     return true;
 }
 public static bool deleteIncident(Incident i)
 {
     return incidentRepository.delete(i);
 }
 protected void btnAddIncident_Click(object sender, EventArgs e)
 {
     Student s = RepositoryUtility.getStudentById(int.Parse(student_cb.SelectedItem.Value));
     Teacher t = RepositoryUtility.getTeacherById(int.Parse(teacher_cb.SelectedItem.Value));
     Incident i = new Incident(0, t, s, 0, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), tb_comment.Text);
     RepositoryUtility.addIncident(i);
     Response.Redirect(Request.RawUrl);
 }