public Incident(int ID,Teacher teacher, Student student, int ticket_ID, String Arrival, String Comment) { this.ID = ID; this.teacher = teacher; this.student = student; this.ticket_ID = ticket_ID; this.arrival = Arrival; this.comment = Comment; }
public static List<Incident> getIncidentsByStudent(Student s) { return s.getIncidents(); }
public static bool addStudent(Student s) { try { studentRepository.add(s); } catch (Exception e) { Console.WriteLine(e.StackTrace); return false; } return true; }
public static bool deleteStudent(Student s) { return studentRepository.delete(s); }
public void addStudent(Student s) { this.students.Add(s); }