public Student(int schild_id, String Givenname, String Surname, Form form) { this.incidents = new List<Incident>(); this.givenname = Givenname; this.surname = Surname; this.form = form; }
public Student(int ID, int schild_id, String Givenname, String Surname, Form form, List<Incident> incidents) { if (incidents == null) this.incidents = new List<Incident>(); else this.incidents = incidents; this.ID = ID; this.givenname = Givenname; this.surname = Surname; this.form = form; }
public void setForm(Form form) { this.form = form; }
public static List<Student> getStudentsByForm(Form f) { return f.getStudents(); }
public static bool deleteForm(Form f) { return formRepository.delete(f); }
public static bool addForm(Form f) { try { formRepository.add(f); } catch (Exception e) { Console.WriteLine(e.StackTrace); return false; } return true; }