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> GetCurrentProductNames(){
            return db.Inventories.Where(x=>x.Location==currentLocation).Select(x=>x.Product.ProductName).ToList();
        }
public List < string > GetCurrentProductNames ( ) { return db . Inventories . Where ( x => x . Location == currentLocation ) . Select ( x => x . Product . ProductName ) . ToList ( ) ; }
Returns a list with the inventory of the current store.
Returns a list with the inventory of the current store .
// List<string> products = new List<string>(); // foreach(Inventory inventory in db.Inventories.Where(x=>x.Location==currentLocation)){ //     products.Add(inventory.Product.ProductName); // } // return products;
None