public ActionResult MovieDetails(string movieID) { if (movieID != "0") { movieDetailStruct mdstruct = new movieDetailStruct(); mdstruct.movieDetail = CRUDmovie.MovieDetailFunc(movieID); mdstruct.cast = CRUDactor.MovieCastFunc(movieID); mdstruct.commentList = CRUDcomment.MovieCommentFunc(movieID); if (mdstruct.movieDetail != null)//movie found { return(View(mdstruct)); } else//movie not found { return(RedirectToAction("Error", new { param = 1 })); } } else { return(RedirectToAction("Error", new { param = 1 })); } }