AdminPanel
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Server.Data;
|
||||
|
||||
namespace VoidScavengers.Admin.Pages.Players;
|
||||
|
||||
public class IndexModel : AdminPageModel
|
||||
{
|
||||
private readonly GameDbContext _db;
|
||||
|
||||
public IndexModel(GameDbContext db)
|
||||
{
|
||||
_db = db;
|
||||
}
|
||||
|
||||
public int PlayerCount { get; set; }
|
||||
|
||||
public async Task OnGetAsync()
|
||||
{
|
||||
PlayerCount = await _db.Accounts.CountAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user