public void AddStudent(UserInfo userInfo, GroupID id)
        {
            var group = _groups.Find(it => it.Id == id);
            if (group == null)
                throw new GroupNotFoundException(String.Format("Can't find group : {0}", id.Id));

            Student st = new Student(userInfo.FirstName, userInfo.LastName, userInfo.SecondName, userInfo.Uri, userInfo.Age);
            group.AddStudent(st);
            AddUser(st, "Student");
        }
Exemple #2
0
        public Group(string id)
        {
            _id = new GroupID(id);

            _students = new List<Student>();
        }