private async void AddFlight() { try { var result = await _service.AddAsync(SelectedFlight); Flights.Insert(0, result); } catch (System.InvalidOperationException ex) { await _dialogService.ShowMessage(ex.Message, "Error"); } }