예제 #1
0
 public void Update(Student student)
 {
     var existingStudent = Database.Students.Find(x => x.Id == student.Id);
     Database.Students.Remove(existingStudent);
     Database.Students.Add(student);
 }
예제 #2
0
 public void Create(Student student)
 {
     Database.Students.Add(student);
 }