public void UpdateCourse(Course course)
 {
     context.Entry(course).State = EntityState.Modified;
 }
Beispiel #2
0
 public void UpdateCategory(Category category)
 {
     context.Entry(category).State = EntityState.Modified;
 }
Beispiel #3
0
 public virtual void Update(T entity)
 {
     context.Set <T>().Attach(entity);
     context.Entry(entity).State = EntityState.Modified;
 }