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