private async void BtnCancelTrip_Clicked(object sender, EventArgs e) { try { using (TripRepository tripRepository = new TripRepository()) { await tripRepository.CancelTrip(Trip.TripId); await Navigation.PopAsync(); stopWatch.Stop(); } } catch { await DisplayAlert("Error", "An unexpected error has occurred", "Ok"); } }