Exemple #1
0
        public async Task Init()
        {
            string route = "now-showing";
            var    list  = await _moviesApi.Get <List <MovieDto> >(null, route);

            MoviesList.Clear();

            foreach (var movie in list)
            {
                MoviesList.Add(movie);
            }


            var userId = await _moviesApi.GetCurrentUserId();

            var listRecommended = await _moviesApi.Get <List <MovieDto> >(userId, "recommended");

            MoviesRecommendedList.Clear();

            foreach (var movie in listRecommended)
            {
                MoviesRecommendedList.Add(movie);
            }
        }
 private void MenuItem_DeleteAll(object sender, RoutedEventArgs e)
 {
     MoviesList.Clear();
     SearchList.Clear();
 }