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(); } }
public void Update(int personalIdentifier, StudentItem student) { _students[personalIdentifier] = new Student(student.Name, student.PersonalIdentifier, student.Gender, student.Type, DateTime.UtcNow); EnsureData(); }