public ActionResult ApprovedReviews() { var model = new ManageReviewPage { Reviews = _admin.CustomerReviewsApproved, ReviewPageTitle = "Approved Reviews", EditMode = false }; return(View("ManageReviews", model)); }
public ActionResult PendingReviews() { var model = new ManageReviewPage { Reviews = _admin.CustomerReviewsPending, ReviewPageTitle = "Pending Reviews", EditMode = true }; return(View("ManageReviews", model)); }
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)); }