public void GetMovieByIMDBIdTest()
        {
            /*
             * {"Title":"How to Train Your Dragon","Year":"2010","Rated":"PG","Released":"26 Mar 2010","Runtime":"98 min","Genre":"Animation, Adventure,
             * Family","Director":"Dean DeBlois, Chris Sanders","Writer":"William Davies (screenplay), Dean DeBlois (screenplay), Chris Sanders (screenplay), C
             * ressida Cowell (book)","Actors":"Jay Baruchel, Gerard Butler, Craig Ferguson, America Ferrera","Plot":"A hapless young Viking who aspires to hunt dragons,
             * becomes the unlikely friend of a young dragon himself, and learns there may be more to the creatures than he assumed.","Language":"English","Country":"USA",
             * "Awards":"Nominated for 2 Oscars. Another 24 wins & 57 nominations.","Poster":"http://ia.media-imdb.com/images/M/MV5BMjA5NDQyMjc2NF5BMl5BanBnXkFtZTcwMjg5ODcyMw@@._V1_SX300.jpg",
             * "Metascore":"74","imdbRating":"8.2","imdbVotes":"450,613","imdbID":"tt0892769","Type":"movie","Response":"True"}
             *
             */

            var target = omdbService.GetMovieByIMDBId("tt0892769");

            var result = Task.Run(() => target).Result;

            Assert.That(result.ImdbId, Is.EqualTo("tt0892769"));
            Assert.That(result.Year, Is.EqualTo("2010"));
            Assert.That(result.Title, Is.EqualTo("How to Train Your Dragon"));
            Assert.That(result.Type, Is.EqualTo("movie"));
        }
        public async Task <ActionResult> GetMovieById(string ImdbId)
        {
            try
            {
                var result = await _omdpService.GetMovieByIMDBId(ImdbId);

                return(Json(Mapper.Map <Movie, MovieViewModel>(result), JsonRequestBehavior.AllowGet));
            }
            catch (Exception e)
            {
                return(Content(e.Message));
            }
        }