public void Update(Product product) { _context.Entry(product).State = EntityState.Modified; }
public void AddProduct(Product product) { _context.Products.Add(product); }