protected override async void OnAppearing() { try { patientController = new PatientController(); patients = await patientController.GetAllPatientsAsync(); ListViewPatients.ItemsSource = patients; } catch (ApiException ex) { await DisplayAlert(AppResources.ErrorTitle, LogicHelper.ErrorMessage(ex.ErrorCode), AppResources.DialogOk); } catch (ConnectionException) { await DisplayAlert(AppResources.ErrorTitle, AppResources.ConnectionException, AppResources.DialogOk); } }