private async Task RefreshBucketLists() { var settings = await appSettingsInMemoryService.GetSettings(); var buckets = await bucketsInMemoryService.GetBucketListsForUser(settings.CurrentUserId); lvBucketLists.ItemsSource = buckets; }
private async Task RefreshBucketLists() { //get settings, because we need current user id var settings = await settingsService.GetSettings(); //get all bucket lists for this user var buckets = await bucketListService.GetBucketListsForUser(settings.CurrentUserId); //bind IEnumerable<Bucket> to the ListView's ItemSource lvBucketLists.ItemsSource = buckets; }