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

50 lines
1.1 KiB
C#
Raw Normal View History

2022-10-27 20:13:02 +03:00
using BlueWest.Data.Auth.Context.Users;
2022-09-26 04:05:23 +03:00
using BlueWest.Views.Utils;
2022-09-19 05:50:15 +03:00
using Microsoft.AspNetCore.Mvc;
namespace BlueWest.Views.Controllers
{
2022-10-27 20:13:02 +03:00
public class SystemController : UserController
2022-09-19 05:50:15 +03:00
{
2022-10-27 20:13:02 +03:00
public SystemController(ApplicationUserManager userManager, ILogger<SystemController> logger) : base(userManager, logger)
2022-09-19 05:50:15 +03:00
{
_logger = logger;
2022-10-27 20:13:02 +03:00
_userManager = userManager;
2022-09-19 05:50:15 +03:00
}
2022-10-27 20:13:02 +03:00
public async Task<IActionResult> Index()
2022-09-19 05:50:15 +03:00
{
2022-10-27 20:13:02 +03:00
await OnEveryAction();
return View();
}
public override void OnInitialization()
{
SetFooterMenu(LayoutCache.SystemRoute.Children);
}
public async Task<IActionResult> Users()
{
await OnEveryAction();
2022-09-19 05:50:15 +03:00
return View();
}
2022-10-27 20:13:02 +03:00
public async Task<IActionResult> Logs()
2022-09-19 05:50:15 +03:00
{
2022-10-27 20:13:02 +03:00
await OnEveryAction();
2022-09-19 05:50:15 +03:00
return View();
}
2022-10-27 20:13:02 +03:00
public async Task<IActionResult> Roles()
{
await OnEveryAction();
return View("Roles/Index");
}
2022-09-19 05:50:15 +03:00
}
}