Exemplo n.º 1
0
        public ActionResult ProductInfo(ProductInfoModel review)
        {
            if (Settings.IsSecured)
            {
                ReviewModel.AddReview(ReviewModel.ConvertToReview(review.ReviewModel));
            }
            else
            {
                ReviewModel.AddReview(ReviewModel.ConvertToReview(review.ReviewModel));
            }

            ProductModel.AddOrUpdateProductRating(review.ReviewModel.ProductId);
            return(RedirectToAction("ProductInfo", "Home", new { id = review.ReviewModel.ProductId }));
        }