示例#1
0
        public async Task <IActionResult> GetProducts(int categoryId)
        {
            var products = await _productProcessor.GetProductsAsync(categoryId);

            return(new ObjectResult(_serializer.Serialize(products)));
        }