//Details for movie details. public ActionResult MovieDetails(long id) { ActionResult response; //Anyone with an account can see movie details. if (Session["Role"] != null) { if (id > 0) { try { //Map for one single movie for details. MovieDO movieDO = movieDataAccess.ViewMovie(id); MoviePO moviePO = mapper.MapDoToPo(movieDO); response = View(moviePO); } catch (Exception ex) { logger.ErrorLog(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, ex); response = RedirectToAction("Index", "Movie"); } } else { response = RedirectToAction("Index", "Movie"); } } else { response = RedirectToAction("Register", "Account"); } return(response); }