Exemplo n.º 1
0
        public ActionResult ApprovedReviews()
        {
            var model = new ManageReviewPage
            {
                Reviews         = _admin.CustomerReviewsApproved,
                ReviewPageTitle = "Approved Reviews",
                EditMode        = false
            };

            return(View("ManageReviews", model));
        }
Exemplo n.º 2
0
        public ActionResult PendingReviews()
        {
            var model = new ManageReviewPage
            {
                Reviews         = _admin.CustomerReviewsPending,
                ReviewPageTitle = "Pending Reviews",
                EditMode        = true
            };

            return(View("ManageReviews", model));
        }
Exemplo n.º 3
0
        public ActionResult LiveReviews()
        {
            var model = new ManageReviewPage
            {
                Reviews = _main.CustomerReviewsForDisplay.Select(p => new CustomerReview()
                {
                    Id         = p.Id,
                    Comment    = p.Comment,
                    LocationId = p.LocationId,
                    Rating     = p.Rating ?? 0,
                    IpAddress  = "Not Stored once approved"
                }),
                ReviewPageTitle = "Live Reviews",
                EditMode        = false
            };

            return(View("ManageReviews", model));
        }