2016-10-20 17:55:29 +08:00
|
|
|
|
using Bootstrap.Admin.Models;
|
2018-06-07 00:45:47 +08:00
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2018-11-05 11:40:00 +08:00
|
|
|
|
using System;
|
2016-10-20 17:55:29 +08:00
|
|
|
|
|
|
|
|
|
namespace Bootstrap.Admin.Controllers
|
|
|
|
|
{
|
2016-10-21 16:35:26 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2016-10-20 17:55:29 +08:00
|
|
|
|
public class AdminController : Controller
|
|
|
|
|
{
|
2016-10-21 16:35:26 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Index() => View(new NavigatorBarModel(this));
|
|
|
|
|
|
2016-10-21 16:35:26 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Users() => View(new NavigatorBarModel(this));
|
|
|
|
|
|
2016-10-23 20:05:03 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Groups() => View(new NavigatorBarModel(this));
|
|
|
|
|
|
2016-10-29 16:46:02 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Dicts() => View(new NavigatorBarModel(this));
|
|
|
|
|
|
2016-11-10 14:06:00 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Roles() => View(new NavigatorBarModel(this));
|
|
|
|
|
|
2016-11-10 14:06:00 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Menus() => View(new NavigatorBarModel(this));
|
|
|
|
|
|
2016-11-10 14:06:00 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Logs() => View(new NavigatorBarModel(this));
|
|
|
|
|
|
2016-10-24 20:53:05 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult FAIcon() => View(new NavigatorBarModel(this));
|
|
|
|
|
|
2016-11-02 00:59:58 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2017-04-14 15:20:48 +08:00
|
|
|
|
[AllowAnonymous]
|
2018-08-10 11:09:26 +08:00
|
|
|
|
[ResponseCache(Duration = 600)]
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public PartialViewResult IconView() => PartialView("IconView");
|
|
|
|
|
|
2017-01-01 21:48:30 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Settings() => View(new ThemeModel(this));
|
2016-11-07 16:17:57 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Notifications() => View(new NavigatorBarModel(this));
|
2016-11-07 16:17:57 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Profiles() => View(new ProfilesModel(this));
|
|
|
|
|
|
2016-11-11 21:06:08 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Exceptions() => View(new NavigatorBarModel(this));
|
|
|
|
|
|
2016-11-12 23:00:50 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Messages() => View(new NavigatorBarModel(this));
|
|
|
|
|
|
2016-11-19 20:08:02 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Tasks() => View(new NavigatorBarModel(this));
|
|
|
|
|
|
2016-11-19 20:08:02 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-11-05 11:40:00 +08:00
|
|
|
|
public ActionResult Mobile() => View(new NavigatorBarModel(this));
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用于测试ExceptionFilter
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public ActionResult Error() => throw new Exception("Customer Excetion UnitTest");
|
2016-10-20 17:55:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|