diff --git a/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml b/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml
index 43c725a..60063f3 100644
--- a/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml
+++ b/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml
@@ -39,8 +39,8 @@
diff --git a/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml.cs b/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml.cs
index 3f83594..ac2bf28 100644
--- a/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml.cs
+++ b/EnotaryoPH/EnotaryoPH.Web/Pages/Register.cshtml.cs
@@ -17,7 +17,7 @@ namespace EnotaryoPH.Web.Pages
_passwordService = passwordService;
}
- public void OnGet() => RoleType = "Principal";
+ public void OnGet() => RoleType = nameof(UserType.Principal);
public IActionResult OnPost()
{
@@ -51,7 +51,7 @@ namespace EnotaryoPH.Web.Pages
};
_notaryoDBContext.Users.Add(newUser);
- if (RoleType == "Notary Public")
+ if (RoleType == nameof(UserType.Notary))
{
var newLawyer = new Lawyer
{
@@ -75,7 +75,7 @@ namespace EnotaryoPH.Web.Pages
_notaryoDBContext.SaveChanges();
- return RoleType == "Principal"
+ return RoleType == nameof(UserType.Principal)
? Redirect("/Principal/Dashboard/Dashboard")
: Redirect("/Notary/Dashboard/Dashboard");
}