From 9368810703a63683fccf7e77ea34c8b3b488be2f Mon Sep 17 00:00:00 2001 From: Benjamin Date: Sun, 29 Dec 2024 22:01:47 +0100 Subject: [PATCH] Cleanup inside models --- pointMaster/Controllers/StatsApiController.cs | 2 +- pointMaster/Models/Patrulje.cs | 10 +++++----- pointMaster/Models/Points.cs | 4 ++-- pointMaster/Models/Poster.cs | 6 +++--- pointMaster/Views/Patrulje/Create.cshtml | 4 ++-- pointMaster/pointMaster.csproj | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/pointMaster/Controllers/StatsApiController.cs b/pointMaster/Controllers/StatsApiController.cs index 4a367c9..f9a521a 100644 --- a/pointMaster/Controllers/StatsApiController.cs +++ b/pointMaster/Controllers/StatsApiController.cs @@ -80,7 +80,7 @@ namespace pointMaster.Controllers vm.Add(new StatModel { - Title = "Points givet", + Title = "Points givet ialt", Value = pointData.Sum(x => x.Points + x.Turnout).ToString() }); diff --git a/pointMaster/Models/Patrulje.cs b/pointMaster/Models/Patrulje.cs index e542355..9658ec6 100644 --- a/pointMaster/Models/Patrulje.cs +++ b/pointMaster/Models/Patrulje.cs @@ -3,18 +3,18 @@ public class Patrulje { public int Id { get; set; } - public string Name { get; set; } = null!; - public List PatruljeMedlems { get; set; } = null!; - public List Points { get; set; } = null!; + public string Name { get; set; } + public List PatruljeMedlems { get; set; } + public List Points { get; set; } public DateTime? DateCreated { get; set; } } public class PatruljeMedlem { public int Id { get; set; } - public string Name { get; set; } = null!; + public string Name { get; set; } public int Age { get; set; } - public Patrulje Patrulje { get; set; } = null!; + public Patrulje Patrulje { get; set; } public DateTime? DateCreated { get; set; } } } diff --git a/pointMaster/Models/Points.cs b/pointMaster/Models/Points.cs index 5b59055..fc82b8f 100644 --- a/pointMaster/Models/Points.cs +++ b/pointMaster/Models/Points.cs @@ -5,8 +5,8 @@ public int Id { get; set; } public int Points { get; set; } public int Turnout { get; set; } - public Patrulje Patrulje { get; set; } = null!; - public Post Poster { get; set; } = null!; + public Patrulje Patrulje { get; set; } + public Post Poster { get; set; } public DateTime? DateCreated { get; set; } } } diff --git a/pointMaster/Models/Poster.cs b/pointMaster/Models/Poster.cs index b74655a..eba0aaf 100644 --- a/pointMaster/Models/Poster.cs +++ b/pointMaster/Models/Poster.cs @@ -3,9 +3,9 @@ public class Post { public int Id { get; set; } - public string Name { get; set; } = null!; - public string Location { get; set; } = null!; - public string Description { get; set; } = null!; + public string Name { get; set; } + public string Location { get; set; } + public string Description { get; set; } public DateTime? DateCreated { get; set; } } } diff --git a/pointMaster/Views/Patrulje/Create.cshtml b/pointMaster/Views/Patrulje/Create.cshtml index 7dabcdb..42ad6d2 100644 --- a/pointMaster/Views/Patrulje/Create.cshtml +++ b/pointMaster/Views/Patrulje/Create.cshtml @@ -3,7 +3,7 @@ ViewData["Title"] = "Opret patrulje"; } -

Create Patrulje

+

Opret Patrulje

@@ -13,6 +13,6 @@
- + \ No newline at end of file diff --git a/pointMaster/pointMaster.csproj b/pointMaster/pointMaster.csproj index 66363bd..d8f1978 100644 --- a/pointMaster/pointMaster.csproj +++ b/pointMaster/pointMaster.csproj @@ -2,7 +2,7 @@ net8.0 - enable + disable enable f4aae456-b78c-4976-9472-dd315dc4a61f Linux