CodeLiturgy.Dashboard/BlueWest.Views/Controllers/System/SystemController.cs

50 lines
1.1 KiB
C#

using BlueWest.Data.Auth.Context.Users;
using BlueWest.Views.Utils;
using Microsoft.AspNetCore.Mvc;
namespace BlueWest.Views.Controllers
{
public class SystemController : UserController
{
public SystemController(ApplicationUserManager userManager, ILogger<SystemController> logger) : base(userManager, logger)
{
_logger = logger;
_userManager = userManager;
}
public async Task<IActionResult> Index()
{
await OnEveryAction();
return View();
}
public override void OnInitialization()
{
SetFooterMenu(LayoutCache.SystemRoute.Children);
}
public async Task<IActionResult> Users()
{
await OnEveryAction();
return View();
}
public async Task<IActionResult> Logs()
{
await OnEveryAction();
return View();
}
public async Task<IActionResult> Roles()
{
await OnEveryAction();
return View("Roles/Index");
}
}
}