Пример #1
0
 public void Update(Course course)
 {
     db.Entry(course).State = EntityState.Modified;
 }
Пример #2
0
 public void Add(Course course)
 {
     db.Courses.Add(course);
 }