Exemple #1
0
        public async void RemoveItem(string ean)
        {
            await _inventoryClient.RemoveItem(_someFancyUniqueId, ean);

            Items.Remove(Items.Single(x => x.Ean == ean));
        }
Exemple #2
0
 public ActionResult Delete(int Id)
 {
     InventoryClient client = new InventoryClient();
     client.RemoveItem(Id);
     return RedirectToAction("Index");
 }