예제 #1
0
        public IActionResult Index(string imdbIdParam)
        {
            if (string.IsNullOrEmpty(imdbIdParam))
            {
                return(View(null));
            }

            var            moviesInstance = new MoviesManager();
            IMovieFullInfo movie          = moviesInstance.GetMovieInfo(imdbIdParam);

            string imdbUrl = HelperMethods.GetAppConfigValue("imdbUrl");

            ViewBag.ImDbUrl = imdbUrl += movie.ImdbID;

            return(View(movie));
        }