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)); }
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)); }