public void UpdateCategory(Category category) { _context.Entry(category).State = EntityState.Modified; }