public ActionResult ProductSpecifications(int productId)
        {
            var product = _productService.GetProductById(productId);

            if (product == null)
            {
                throw new ArgumentException(T("Products.NotFound", productId));
            }

            var model = _helper.PrepareProductSpecificationModel(product);

            if (model.Count == 0)
            {
                return(Content(""));
            }

            return(PartialView("Product.Specs", model));
        }
Esempio n. 2
0
        public ActionResult ProductSpecifications(int productId)
        {
            var product = _productService.GetProductById(productId);

            if (product == null)
            {
                throw new ArgumentException("No product found with the specified id");
            }

            var model = _helper.PrepareProductSpecificationModel(product);

            if (model.Count == 0)
            {
                return(Content(""));
            }

            return(PartialView(model));
        }