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