130 lines
3.6 KiB
C#
130 lines
3.6 KiB
C#
using Bootstrap.Admin.Models;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
|
|
namespace Bootstrap.Admin.Controllers
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class AdminController : Controller
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Index() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Users() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Groups() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Dicts() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Roles() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Menus() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Logs() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Logins() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult FAIcon() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[AllowAnonymous]
|
|
[ResponseCache(Duration = 600)]
|
|
public PartialViewResult IconView() => PartialView("IconView");
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Settings() => View(new ThemeModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Notifications() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Profiles() => View(new ProfilesModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Exceptions() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Messages() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Tasks() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Mobile() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
/// 在线用户
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Online() => View(new NavigatorBarModel(this));
|
|
|
|
/// <summary>
|
|
/// 用于测试ExceptionFilter
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ActionResult Error() => throw new Exception("Customer Excetion UnitTest");
|
|
}
|
|
}
|