public void RegisterStudent(Student student) { if (student == null) { throw new ArgumentNullException(); } Students.Add(student); }
private void Update(IUniversityService universityService) { Students.Clear(); Groups.Clear(); var tempStud = universityService.GetStudents(); var tempGroup = universityService.GetGroup(); foreach (var item in tempStud) { Students.Add(item); } foreach (var item in tempGroup) { Groups.Add(item); } }