public async Task <IActionResult> Submit(MovieDetailModel model) { var movieDetail = await _movieDetailsClient.GetMovieDetailsAsync(model.Title); return(View("Index", movieDetail)); }
public async Task <IActionResult> Submit(string title) { var movieDetail = await _movieDetailsClient.GetMovieDetailsAsync(title); return(Ok(movieDetail)); }