protected override void OnExecute() { _transactionContext.Execute(() => { var item = _inventoryService.GetByProductCommand(_productID).Execute().Value; _inventoryService.DeleteCommand(item.ID).Execute(); _productDataProxy.Delete(_productID); }); }
protected override void OnExecute() { _transactionContext.Execute(() => { var item = _inventoryService.GetByProductCommand(_productID).Execute().Value; _inventoryService.DeleteCommand(item.ID).Execute(); _productDataProxy.Delete(_productID); }); }