P1_TrevorGraham/MvcStoreApplication/Repository/Repository.cs
/// <summary>
/// Returns a list of all inventories based on the location id given
/// </summary>
/// <param name="currentLocationId"></param>
/// <returns></returns>
Returns a list of all inventories based on the location id given
Returns a list of all inventories based on the location id given
public List<Inventory> GetLocationInventories(Guid currentLocationId)
        {
            List<Inventory> filteredInventories = new List<Inventory>();
            return _dbContext.Inventories.Include(x=>x.Product).Where(x => x.Location.LocationId == currentLocationId).ToList();
        }
public List < Inventory > GetLocationInventories ( Guid currentLocationId ) { List < Inventory > filteredInventories = new List < Inventory > ( ) ; return _dbContext . Inventories . Include ( x => x . Product ) . Where ( x => x . Location . LocationId == currentLocationId ) . ToList ( ) ; }
Returns a list of all inventories based on the location id given
Returns a list of all inventories based on the location id given
None
currentLocationId
Guid
None