Esempio n. 1
0
        public ActionResult GetMovie(string tags, string id)
        {
            tags = tags.Trim();
            var movie = _moviesRepository.GetMovieById(tags, id);

            var seachMovieNameFormat = "{0} {1} movie trailer";

            movie.EmbededTrailer = _trailerRepository.GetTrailer(string.Format(seachMovieNameFormat, movie.Title, movie.ReleaseYear));
            return(PartialView("_MovieDetails", movie));
        }