public ActionResult Details(Guid mediaId) { var result = ShowService.GetShowByMediaId(User.Identity.GetUserId(), mediaId); if (result != null) { return(View(result)); } return(View("Index")); }
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")); }
public ActionResult Edit(Guid mediaId) { return(View(new EditShowViewModel(ShowService.GetShowByMediaId(User.Identity.GetUserId(), mediaId)))); }