public int GetItemStock(string itemName, string category) { return(InventoryItems.Single(i => i.Name.Equals(itemName) && i.Category.Equals(category)).Stock); }
public IInventoryItem FindItem(string name, string category) { return(InventoryItems.Single(i => i.Name.Equals(name) && i.Category.Equals(category))); }