// studentLists add/edit/delete public void AddStudent(Student newStudent) { // FUNCTION: Add new Student to the list // PRE-CONDITIONS: // POST-CONDITIONS: studentList.Add(newStudent.matric, newStudent); }
public void AddStudentParticulars(string matric, Gender gender, string name, string password, string school) { // FUNCTION: add the particulars of the students // PRE-CONDITIONS: // POST-CONDITIONS: Student student = new Student(); student.matric = matric; student.name = name; student.password = password; student.school = school; student.gender = gender; server.AddStudent(student); }