예제 #1
0
 public void RemoveStock(CommandStockInput cmdStock)
 {
     this._productLogic.RemoveStock(cmdStock);
 }
예제 #2
0
 /// <summary>
 /// Remove stock from a product
 /// </summary>
 /// <param name="cmdStock"></param>
 public void RemoveStock(CommandStockInput cmdStock)
 {
     ProductEntity product = this._productRepository.Get(cmdStock.Id);
     product.Quantity -= cmdStock.Quantity;
     this._productRepository.Update(product);
 }
예제 #3
0
 public void AddStock(CommandStockInput cmdStock)
 {
     this._productLogic.AddStock(cmdStock);
 }