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