From 37c171c34837584335032c2de800057c349df1c3 Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Wed, 27 Sep 2023 13:00:16 -0600 Subject: [PATCH] working on serialization --- Management/Models/Local/LocalModules.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Management/Models/Local/LocalModules.cs b/Management/Models/Local/LocalModules.cs index e1438ff..28bf559 100644 --- a/Management/Models/Local/LocalModules.cs +++ b/Management/Models/Local/LocalModules.cs @@ -3,12 +3,12 @@ namespace LocalModels; public record LocalModule { public string Name { get; init; } = string.Empty; - public string Id { get; init; } = string.Empty; + public string Id { get; init; } = DateTime.UtcNow.Ticks.ToString(); + public ulong? CanvasId { get; set; } = null; + public string Notes { get; set; } = string.Empty; public IEnumerable Assignments { get; init; } = Enumerable.Empty(); public IEnumerable Quizzes { get; init; } = Enumerable.Empty(); - public ulong? CanvasId { get; set; } = null; - public string Notes { get; set; } = string.Empty; }