Exemple #1
0
        public ActionResult WriteReview(int score, string explanation)
        {
            ProductReview pr = prs.Find(review => review.User.ID.Equals(user.ID));

            pr.Score       = score;
            pr.Explanation = explanation;
            ProductReview.SaveProductReview(pr);
            return(RedirectToAction("Product", "Product", pr.Product.ID));
        }