/** * Edit Item (U) */ public void EditItem(Item item) { _context.Entry(item).State = EntityState.Modified; _context.SaveChanges(); }
/** * Editing currently existing categories (U) */ public void EditCategory(Category category) { _context.Entry(category).State = EntityState.Modified; _context.SaveChanges(); }