public async void Execute(object parameter) { _addEntryViewModel.ErrorMessage = string.Empty; try { var booking = await _bookingService.AddBooking(_addEntryViewModel.Title, _addEntryViewModel.Amount, _addEntryViewModel.Date, _addEntryViewModel.BookingOption, _addEntryViewModel.SelectedCategory, _addEntryViewModel.SelectedBankAccount); //_overviewViewModel.Bookings.Add(new BookingPanelViewModel(_overviewViewModel, booking, _bookingService, _dialogService)); _overviewViewModel.GetYears(); Cleanup(); } catch (Exception e) { _addEntryViewModel.ErrorMessage = $"Es ist ein Fehler aufgetreten. {e.Message}"; } }