public async Task <ActionResult> Movie(string url)
        {
            var client = new MoviesRentalWebAPIClient();
            var movie  = await client.GetMovie(url);

            var viewModel = new MovieViewModel
            {
                Movie = movie
            };

            return(View(viewModel));
        }
示例#2
0
        public async Task <ActionResult> Index(int id)
        {
            var client = new MoviesRentalWebAPIClient();
            var movie  = await client.GetMovie(id);

            var viewModel = new MovieViewModel
            {
                Movie = movie
            };

            return(View(viewModel));
        }