public IHttpActionResult Get(int id)
        {
            var product = _productCatalogService.Get(id);

            return(Ok(new
            {
                data = new
                {
                    product
                }
            }));
        }
Beispiel #2
0
        public async Task <IActionResult> Get([FromRoute] int id)
        {
            var product = await _productCatalogService.Get(id);

            return(Ok(product));
        }