private Product QueryProduct()

in DotNETCore/Controllers/ProductsController.cs [113:122]


        private Product QueryProduct(int id)
        {
            var item = LazyTable.Value.GetItemAsync(id).Result;
            if (item == null)
            {
                throw new ProductNotFoundException("Can't find a product with id = " + id);
            }

            return BuildProduct(item);
        }