Esempio n. 1
0
 public void Add(StudentItem student)
 {
     if (!_students.ContainsKey(student.PersonalIdentifier))
     {
         _students.Add(student.PersonalIdentifier, new Student(student.Name, student.PersonalIdentifier, student.Gender, student.Type, DateTime.UtcNow));
         EnsureData();
     }
 }
Esempio n. 2
0
 public void Update(int personalIdentifier, StudentItem student)
 {
     _students[personalIdentifier] = new Student(student.Name, student.PersonalIdentifier, student.Gender, student.Type, DateTime.UtcNow);
     EnsureData();
 }