▼ /Controllers/AdminController.cs
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace DotNetNote.Controllers
{
[Authorize(“Administrators”)]
public class AdminController : Controller
{
public IActionResult Index()
{
return View();
}
/// <summary>
/// TODO: 게시판 관리자 페이지
/// </summary>
public IActionResult NoteManager()
{
return View();
}
/// <summary>
/// TODO: 사용자 관리자 페이지
/// </summary>
public IActionResult UserManager()
{
return View();
}
}
}