protected override void OnExecute() { _transactionContext.Execute(() => { var item = _inventoryService.GetByProductCommand(_productID).Execute().Value; _inventoryService.DeleteCommand(item.ID).Execute(); _productDataProxy.Delete(_productID); }); }
private async Task LoadInventoryItemAsync() { var result = await _inventoryService.GetByProductCommand(CurrentProductID).ExecuteAsync(); _currentInventoryItem = result.Value; OnPropertyChanged("QuantityOnHand"); }