async Task LoadPersonList(ObservableCollection <Person> List, string Path, Dictionary <string, string> Query) { var results = await Task.Run(() => TMDBService.GetPersonList(Path, Query, 1, 1)); foreach (var v in results) { List.Add(v); } }
public async Task LoadData() { LoadedPages++; var results = await Task.Run(() => TMDBService.GetPersonList(Path, Query, LoadedPages, 1)); if (results.Count != 0) { LoadedMore(); } foreach (var v in results) { People.Add(v); } }