BootstrapAdmin/Bootstrap.Admin/Controllers/AdminController.cs

118 lines
3.2 KiB
C#
Raw Normal View History

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;
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>
public ActionResult Index() => View(new NavigatorBarModel(this));
2016-10-21 16:35:26 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Users() => View(new NavigatorBarModel(this));
2016-10-23 20:05:03 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Groups() => View(new NavigatorBarModel(this));
2016-10-29 16:46:02 +08:00
/// <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 FAIcon() => View(new NavigatorBarModel(this));
2016-11-02 00:59:58 +08:00
/// <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));
2016-11-11 21:06:08 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Exceptions() => View(new NavigatorBarModel(this));
2016-11-12 23:00:50 +08:00
/// <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>
/// 用于测试ExceptionFilter
/// </summary>
/// <returns></returns>
public ActionResult Error() => throw new Exception("Customer Excetion UnitTest");
2016-10-20 17:55:29 +08:00
}
}