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