From 1a5fdeade8774c25ef5be28be9afa30a21d69611 Mon Sep 17 00:00:00 2001 From: Miguel Cano Santana <55782155+miguelcanosantana@users.noreply.github.com> Date: Sun, 26 Nov 2023 19:37:48 +0100 Subject: [PATCH] Fixed null error on affiliate custom page. --- Model/User.cs | 9 +++++++++ Services/UserService.cs | 1 + 2 files changed, 10 insertions(+) diff --git a/Model/User.cs b/Model/User.cs index 57ce4e0..b16efbe 100644 --- a/Model/User.cs +++ b/Model/User.cs @@ -17,6 +17,15 @@ public User(String name, String surnames, String email, String password) this.password = password; } + public User(String id, String name, String surnames, String email, String password) + { + this.id = id; + this.name = name; + this.surnames = surnames; + this.email = email; + this.password = password; + } + //Getters public String GetId() { return id; } public String GetName() { return name; } diff --git a/Services/UserService.cs b/Services/UserService.cs index 9efa8f9..e22b08a 100644 --- a/Services/UserService.cs +++ b/Services/UserService.cs @@ -18,6 +18,7 @@ public class UserService public void InitializeDummyDB() { User testUser = new User( + "c432ff01-b4ef-4490-b376-0abdc98e8f3f000", "Testing", "Tests", "testuser@example.com",