Esempio n. 1
0
 protected override void OnExecute()
 {
     _transactionContext.Execute(() =>
     {
         var item = _inventoryService.GetByProductCommand(_productID).Execute().Value;
         _inventoryService.DeleteCommand(item.ID).Execute();
         _productDataProxy.Delete(_productID);
     });
 }
Esempio n. 2
0
        private async Task LoadInventoryItemAsync()
        {
            var result = await _inventoryService.GetByProductCommand(CurrentProductID).ExecuteAsync();

            _currentInventoryItem = result.Value;
            OnPropertyChanged("QuantityOnHand");
        }