Exemplo n.º 1
0
 public bool AddStudent(Student student)
 {
     if (University.Students.Contains(student))
     {
         RegisteredStudents.Add(student);
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
        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);
        }