diff --git a/server/Models/Database/StationListing.cs b/server/Models/Database/StationListing.cs index 715b629..d5e678e 100644 --- a/server/Models/Database/StationListing.cs +++ b/server/Models/Database/StationListing.cs @@ -13,5 +13,6 @@ public record StationListing( string Name, List StoppedAtBy ) { + public StationListing() : this(null, "", new()) { } public StationListing(string name, List stoppedAtBy) : this(null, name, stoppedAtBy) { } } diff --git a/server/Models/Database/TrainListing.cs b/server/Models/Database/TrainListing.cs index 66d012d..bebe0f4 100644 --- a/server/Models/Database/TrainListing.cs +++ b/server/Models/Database/TrainListing.cs @@ -13,5 +13,6 @@ public record TrainListing( string Number, string Company ) { + public TrainListing() : this(null, "", "", "") { } public TrainListing(string rank, string number, string company) : this(null, rank, number, company) { } } \ No newline at end of file