Пример #1
0
 public Task ModifiedAsync(Product_item product_Item)
 {
     _context.Entry(product_Item).State = EntityState.Modified;
     return(_context.SaveChangesAsync());
 }
Пример #2
0
 public Task RemoveAsync(Product_item product_Item)
 {
     _context.Remove(product_Item);
     return(_context.SaveChangesAsync());
 }
Пример #3
0
 public Task AddAsync(Product_item product_Item)
 {
     _context.Product_items.AddAsync(product_Item);
     return(_context.SaveChangesAsync());
 }