public async void RemoveItem(string ean) { await _inventoryClient.RemoveItem(_someFancyUniqueId, ean); Items.Remove(Items.Single(x => x.Ean == ean)); }
public ActionResult Delete(int Id) { InventoryClient client = new InventoryClient(); client.RemoveItem(Id); return RedirectToAction("Index"); }