From f143f0b2e9c8f0bcde4bf7ee87848710f03109b1 Mon Sep 17 00:00:00 2001 From: Sebastian Hedtrich Date: Mon, 30 Mar 2026 12:14:28 +0200 Subject: [PATCH] first build possible --- .../ViewModels/Groups/AddGroupDialogViewModel.cs | 7 +++---- LehrerApp.Sync/Models/PlainSyncModels.cs | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) 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; }