public void RemoveStock(CommandStockInput cmdStock) { this._productLogic.RemoveStock(cmdStock); }
/// <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); }
public void AddStock(CommandStockInput cmdStock) { this._productLogic.AddStock(cmdStock); }