Пример #1
0
        public ActionResult Edit(int id)
        {
            var review = _venueService.GetReviewById(id);

            var model = new EditReviewViewModel();

            model.VenueId   = review.VenueId;
            model.Comments  = review.Comments;
            model.Rating    = review.Rating;
            model.ReviewId  = review.ReviewId;
            model.VenueName = _venueService.GetVenueNameById(review.VenueId);

            return(View(model));
        }