public async Task <IActionResult> Index() { var htmlParser = new MovieHtmlParser(); var movies = await htmlParser.RetrieveMoviesOfTheWeek(); return(View(movies)); }
public override async void ViewDidLoad() { base.ViewDidLoad(); var htmlParser = new MovieHtmlParser(); var movies = await htmlParser.RetrieveMoviesOfTheWeek(); var tableViewSource = new MovieTableViewSource { Movies = movies }; MoviesTableView.Source = tableViewSource; MoviesTableView.ReloadData(); }