diff --git a/Moonlight/Core/UI/Views/Admin/Index.razor b/Moonlight/Core/UI/Views/Admin/Index.razor
index 45de84b..2cb5718 100644
--- a/Moonlight/Core/UI/Views/Admin/Index.razor
+++ b/Moonlight/Core/UI/Views/Admin/Index.razor
@@ -18,7 +18,9 @@
Users
- @Users.Count
+
+ @UserCount
+
@@ -38,7 +40,7 @@
Servers
- @Servers.Count
+ @ServerCount
@@ -56,16 +58,16 @@
@* This is just the start of this admin page, there will still be added more during the developement process *@
@code {
- private List Servers;
- private List Users;
+ private int ServerCount;
+ private int UserCount;
private async Task Load(LazyLoader arg)
{
await Task.Run(() =>
{
arg.SetText("Loading Information...");
- Servers = ServerRepository.Get().ToList();
- Users = UserRepository.Get().ToList();
+ ServerCount = ServerRepository.Get().Count();
+ UserCount = UserRepository.Get().Count();
});
}
}
\ No newline at end of file