Exemplo n.º 1
0
        public async Task <IActionResult> Details(int productId)
        {
            var response = await _productCatalogService.GetProductDetail <ProductGetResponseModel>(productId);

            if (response == null)
            {
                return(RedirectToAction("Index"));
            }

            return(View(response));
        }