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