public void OnGet()
 {
     foreach (var location in locationList)
     {
         if (location.StoreName != "Warehouse")
         {
             var instance = new InventoryCheck();
             instance.checkInventory(location.Id.ToString());
         }
     }
 }
Example #2
0
        public void OnGet()
        {
            var locationList = dbContext.Locations.Find(m => true).ToList();

            foreach (var location in locationList)
            {
                if (location.LocationType != "Warehouse")
                {
                    var instance = new InventoryCheck();
                    instance.checkInventory(location.Id.ToString());
                }
            }
        }