예제 #1
0
        public async Task <IActionResult> Index()
        {
            var htmlParser = new MovieHtmlParser();
            var movies     = await htmlParser.RetrieveMoviesOfTheWeek();

            return(View(movies));
        }
예제 #2
0
        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();
        }