diff --git a/LehrerApp.Desktop/ViewModels/Groups/AddGroupDialogViewModel.cs b/LehrerApp.Desktop/ViewModels/Groups/AddGroupDialogViewModel.cs index 356e17c..c39f5ff 100644 --- a/LehrerApp.Desktop/ViewModels/Groups/AddGroupDialogViewModel.cs +++ b/LehrerApp.Desktop/ViewModels/Groups/AddGroupDialogViewModel.cs @@ -55,18 +55,18 @@ public partial class AddGroupDialogViewModel : ObservableObject } [RelayCommand] - private bool Save() + private void Save() { // Validierung if (string.IsNullOrWhiteSpace(Name)) { ValidationMessage = "Bitte einen Namen eingeben."; - return false; + return; } if (GradeLevel is < 1 or > 13) { ValidationMessage = "Klassenstufe muss zwischen 1 und 13 liegen."; - return false; + return; } Result = new LearningGroup @@ -82,7 +82,6 @@ public partial class AddGroupDialogViewModel : ObservableObject _groups.Save(Result); ValidationMessage = ""; - return true; } } diff --git a/LehrerApp.Sync/Models/PlainSyncModels.cs b/LehrerApp.Sync/Models/PlainSyncModels.cs index 2356751..90aec64 100644 --- a/LehrerApp.Sync/Models/PlainSyncModels.cs +++ b/LehrerApp.Sync/Models/PlainSyncModels.cs @@ -21,7 +21,7 @@ public class PlainSyncEvent /// /// Antwort auf einen Plain-Push. /// -public class PlainPushResponse +public record class PlainPushResponse { public bool Success { get; init; } public long ServerSequenceNr { get; init; }