コード例 #1
0
        public async Task <ActionResult> Get(int id)
        {
            var pizza = await _productQueries.GetPizzaByIdAsync(id);

            if (pizza == null)
            {
                return(NotFound());
            }
            return(Ok(pizza));
        }