示例#1
0
 public void Update(Product product)
 {
     _context.Entry(product).State = EntityState.Modified;
 }
示例#2
0
 public void AddProduct(Product product)
 {
     _context.Products.Add(product);
 }