Example #1
0
        public ActionResult AddReview(int entId, string reviewText, string rating)
        {
            int mark = Convert.ToInt32(rating);

            entRepository.AddReview(entId, User.Identity.Name, new Review
            {
                Description = reviewText,
                Mark        = mark
            });

            UpdateEnterpriceRating(entId);
            return(RedirectToAction("Index", new { id = entId }));
        }