mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
15 lines
438 B
C#
15 lines
438 B
C#
|
|
using DbContext = Aaru.Server.Old.Database.DbContext;
|
||
|
|
|
||
|
|
namespace Aaru.Server.Old.Areas.Admin.Controllers;
|
||
|
|
|
||
|
|
[Area("Admin")]
|
||
|
|
[Authorize]
|
||
|
|
public sealed class CommandsController : Controller
|
||
|
|
{
|
||
|
|
readonly DbContext _context;
|
||
|
|
|
||
|
|
public CommandsController(DbContext context) => _context = context;
|
||
|
|
|
||
|
|
// GET: Admin/Commands
|
||
|
|
public async Task<IActionResult> Index() => View(await _context.Commands.OrderBy(c => c.Name).ToListAsync());
|
||
|
|
}
|