using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using PSTW_CentralSystem.DBContext; using PSTW_CentralSystem.Models; using System.Diagnostics; namespace PSTW_CentralSystem.Controllers { //[Authorize(Policy = "RoleModulePolicy")] public class AdminController : Controller { private readonly IdentityDBContext _authDbContext; private readonly ILogger _logger; public AdminController(ILogger logger, IdentityDBContext authDbContext) { _logger = logger; _authDbContext = authDbContext; } public IActionResult Index() { return View(); } public IActionResult ModuleAdmin() { return View(); } public IActionResult ModuleSetting(int? id) { if (id == null) { return NotFound(); } var moduleSettings = _authDbContext.ModuleSettings.Find(id); if (moduleSettings == null) { return NotFound(); } return View(moduleSettings); } public IActionResult ModuleCreate() { return View(); } } }