public async Task <IActionResult> Submit(MovieDetailModel model)
        {
            var movieDetail = await _movieDetailsClient.GetMovieDetailsAsync(model.Title);

            return(View("Index", movieDetail));
        }
示例#2
0
        public async Task <IActionResult> Submit(string title)
        {
            var movieDetail = await _movieDetailsClient.GetMovieDetailsAsync(title);

            return(Ok(movieDetail));
        }