private async void ReturnData() { var listGenres = await managerMovies.GetAllGenres(); var moviesCollection = await managerMovies.GetAll(1);//page 1//create command to continue... if (moviesCollection.results != null) { foreach (Models.MoviesNewClass.Result outView in moviesCollection.results) { //var id_movie = outView.id;//id movie for detail var genreIds = outView.genre_ids; //list id genres of movie in upcoming compare to another list var genreListAll = listGenres.genres; //lista all genres foreach (var a in genreIds) { int num = a; foreach (var b in genreListAll) { var id = b.id; if (num == id) { genreOut = String.Concat(b.name + ""); } } } //string poster_path_generator = "https://image.tmdb.org/t/p/w200" + outView.poster_path; ListMovies.Add(new Models.MoviesNewClass.Result { id = outView.id, poster_path = "https://image.tmdb.org/t/p/w200" + outView.poster_path, title = outView.title, release_date = outView.release_date, genresOut = genreOut }); } } }