Example #1
0
        public ActionResult Details(Guid mediaId)
        {
            var result = ShowService.GetShowByMediaId(User.Identity.GetUserId(), mediaId);

            if (result != null)
            {
                return(View(result));
            }

            return(View("Index"));
        }
Example #2
0
        public ActionResult Reviews(Guid mediaId)
        {
            var show    = ShowService.GetShowByMediaId(User.Identity.GetUserId(), mediaId);
            var reviews = ReviewShowService.GetAllSharedReviewsByShowId(mediaId);

            show.UserReview = ReviewShowService.GetUserReviewByShowId(mediaId, this.User.Identity.GetUserId());
            show.Reviews    = reviews.Where(r => r.Id != this.User.Identity.GetUserId()).ToList();

            if (show != null)
            {
                return(View(show));
            }

            return(RedirectToAction("Index"));
        }
Example #3
0
 public ActionResult Edit(Guid mediaId)
 {
     return(View(new EditShowViewModel(ShowService.GetShowByMediaId(User.Identity.GetUserId(), mediaId))));
 }