Skip to content

Commit

Permalink
Fixed null error on affiliate custom page.
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcanosantana committed Nov 26, 2023
1 parent 5703b0e commit 1a5fdea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Model/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
1 change: 1 addition & 0 deletions Services/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class UserService
public void InitializeDummyDB()
{
User testUser = new User(
"c432ff01-b4ef-4490-b376-0abdc98e8f3f000",
"Testing",
"Tests",
"[email protected]",
Expand Down

0 comments on commit 1a5fdea

Please sign in to comment.