P0_TrevorGraham/StoreApplication/StoreMain/Logic/StoreSession.cs
/// <summary>
/// Returns a list with the inventory of the current store.
/// </summary>
/// <returns></returns>
Returns a list with the inventory of the current store.
Returns a list with the inventory of the current store .
public List<string> GetCurrentInventory(){
            List<string> products = new List<string>();
            foreach(Inventory inventory in currentLocation.InventoryItems){
                products.Add($"\n{inventory.Product.ProductName}\nPrice: ${inventory.Product.Price}\n{inventory.Quantity} left in stock\n");
            }
            return products;
        }
public List < string > GetCurrentInventory ( ) { List < string > products = new List < string > ( ) ; foreach ( Inventory inventory in currentLocation . InventoryItems ) { products . Add ( $" \n { inventory . Product . ProductName } \n Price: $ { inventory . Product . Price } \n { inventory . Quantity }  left in stock \n " ) ; } return products ; }
Returns a list with the inventory of the current store.
Returns a list with the inventory of the current store .
None