diff --git a/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Admin/Users.cshtml b/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Admin/Users.cshtml
index 1c5897637..238b71053 100644
--- a/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Admin/Users.cshtml
+++ b/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Admin/Users.cshtml
@@ -65,7 +65,7 @@
@if (Model.PreviousPage.HasValue)
{
-
+
}
@for (int i = 0; i < Model.PaginationPages!.Length; i++)
@@ -77,12 +77,12 @@
}
- @item
+ @item
}
@if (Model.NextPage.HasValue)
{
-
+
}
}
@@ -124,12 +124,12 @@
@if (Model.PreviousPage.HasValue)
{
-
+
}
@if (Model.NextPage.HasValue)
{
-
+
}
}
diff --git a/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Admin/Users.cshtml.cs b/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Admin/Users.cshtml.cs
index 7f6b9819d..cd5e8fe28 100644
--- a/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Admin/Users.cshtml.cs
+++ b/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Admin/Users.cshtml.cs
@@ -108,13 +108,13 @@ public Dictionary GetPage(int pageNumber)
var pageData = new Dictionary
{
{ "PageNumber", pageNumber.ToString() },
+ { "UserSearch", UserSearch ?? "" }
};
for (var i = 0; i < LookupStatus!.Length; i++)
{
pageData.Add($"LookupStatus[{i}]", LookupStatus[i].ToString()!);
}
-
return pageData;
}