mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
21 lines
676 B
C#
21 lines
676 B
C#
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using DiscImageChef.CommonTypes.Metadata;
|
|
using DiscImageChef.Server.Models;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace DiscImageChef.Server.Areas.Admin.Controllers
|
|
{
|
|
[Area("Admin"), Authorize]
|
|
public class BlockDescriptorsController : Controller
|
|
{
|
|
readonly DicServerContext _context;
|
|
|
|
public BlockDescriptorsController(DicServerContext context) => _context = context;
|
|
|
|
// GET: Admin/BlockDescriptors
|
|
public async Task<IActionResult> Index() => View(await _context.BlockDescriptor.ToListAsync());
|
|
}
|
|
} |