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

50 lines
1.1 KiB
C#
Raw Permalink Normal View History

2022-11-18 03:15:53 +03:00
using CodeLiturgy.Data.Auth.Context.Users;
2022-10-30 19:48:24 +03:00
using CodeLiturgy.Views.Utils;
2022-09-19 05:50:15 +03:00
using Microsoft.AspNetCore.Mvc;
2022-10-30 19:48:24 +03:00
namespace CodeLiturgy.Views.Controllers
2022-09-19 05:50:15 +03:00
{
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()
{
2022-11-17 00:17:44 +03:00
SetFooterMenu(LayoutCache.SystemRoute.ChildrenToUrl());
2022-10-27 20:13:02 +03:00
}
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
}
}