protected override async void OnAppearing() { base.OnAppearing(); userID = await Constants.GetUserId(); var getAssigned = await APIConnection.GetAssigned(userID); if (getAssigned.Errors != null) { await DisplayAlert(ResxFile.str_error, getAssigned.Errors[0].Message, ResxFile.err_confirm); await Navigation.PopAsync(); return; } coachPlans = new ObservableCollection <CoachPlan>(getAssigned.Data.GetAssigned); PlanList.ItemsSource = coachPlans; }