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