public async Task addinv(int locId, int invid)
        {
            var lhi = await Repo.getInventroyByTwoID(locId, invid);

            lhi.Quantity = lhi.Quantity - 1;
            await Repo.EditInventoryAsync(lhi);
        }
        public async Task <ActionResult> Put([FromQuery] string city)
        {
            Locations loc = Repo.GetLocationByCity(city);

            List <InventoryHasLocation> ingredientsIDs = new List <InventoryHasLocation>();

            ingredientsIDs.AddRange(Repo.GetLocationInventoryByLocationId(loc.Id));

            foreach (var item in ingredientsIDs)
            {
                item.Quantity = 10;
                await Repo.EditInventoryAsync(item);
            }

            return(NoContent());
        }