mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Add possible missing files (I don't trust git move).
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using Aaru.CommonTypes.Metadata;
|
||||
using DbContext = Aaru.Server.Old.Database.DbContext;
|
||||
|
||||
namespace Aaru.Server.Old.Areas.Admin.Controllers;
|
||||
|
||||
[Area("Admin")]
|
||||
[Authorize]
|
||||
public sealed class MmcFeaturesController : Controller
|
||||
{
|
||||
readonly DbContext _context;
|
||||
|
||||
public MmcFeaturesController(DbContext context) => _context = context;
|
||||
|
||||
// GET: Admin/MmcFeatures
|
||||
public async Task<IActionResult> Index() => View(await _context.MmcFeatures.ToListAsync());
|
||||
|
||||
// GET: Admin/MmcFeatures/Details/5
|
||||
public async Task<IActionResult> Details(int? id)
|
||||
{
|
||||
if(id == null) return NotFound();
|
||||
|
||||
MmcFeatures mmcFeatures = await _context.MmcFeatures.FirstOrDefaultAsync(m => m.Id == id);
|
||||
|
||||
if(mmcFeatures == null) return NotFound();
|
||||
|
||||
return View(mmcFeatures);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user