implementet ErrorMessages

This commit is contained in:
Natlinux81
2022-08-29 22:20:55 +02:00
parent a655efdc8c
commit f395258832
14 changed files with 118 additions and 12 deletions

View File

@@ -28,6 +28,7 @@ namespace Apollon.WPF.Commands
{
AddEditDetailsViewModel detailsViewModel = _addTournamentViewModel.AddEditDetailsViewModel;
detailsViewModel.ErrorMessage = null;
detailsViewModel.IsSubmitting = true;
Tournament tournament = new Tournament(
@@ -51,7 +52,7 @@ namespace Apollon.WPF.Commands
}
catch (Exception)
{
throw;
detailsViewModel.ErrorMessage = "Daten konnten nicht gespeichert werden!";
}
finally
{