예제 #1
0
        public async Task <ActionResult> Get(int id)
        {
            var ingredient = await _productQueries.GetIngredientByIdAsync(id);

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