public void Edit(Category category) { context.Entry(category).State = System.Data.Entity.EntityState.Modified; }
public void Edit(Item item) { context.Entry(item).State = System.Data.Entity.EntityState.Modified; }