public void Update(Student student) { var existingStudent = Database.Students.Find(x => x.Id == student.Id); Database.Students.Remove(existingStudent); Database.Students.Add(student); }
public void Create(Student student) { Database.Students.Add(student); }