public bool AddStudent(Student student) { if (University.Students.Contains(student)) { RegisteredStudents.Add(student); return(true); } return(false); }
public bool EnrolStudent(Student student) { if (RegisteredStudents.Count >= Capacity) { WaitlistedStudents.Add(student); return(false); } if (RegisteredStudents.Contains(student)) { return(false); } RegisteredStudents.Add(student); return(true); }