Exemplo n.º 1
0
 public void downStock(int id, int amount)
 {
     Product.Where(s => s.ObjectID == id).First().Quantity -= amount;
     SaveChanges();
 }
Exemplo n.º 2
0
 public List <Product> GetProductList()
 {
     return(Product.Where(i => i.Deleted == false).ToList());
 }