BootstrapAdmin/Bootstrap.Admin/Controllers/AdminController.cs

154 lines
3.8 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;
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>
2016-10-20 17:55:29 +08:00
public ActionResult Index()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
2016-10-20 17:55:29 +08:00
}
2016-10-21 16:35:26 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
2016-10-20 17:55:29 +08:00
public ActionResult Users()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
2016-10-20 17:55:29 +08:00
}
2016-10-23 20:05:03 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Groups()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
}
2016-10-29 16:46:02 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Dicts()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
2016-10-29 16:46:02 +08:00
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Roles()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Menus()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Logs()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
}
/// <summary>
///
/// </summary>
/// <returns></returns>
2016-10-23 20:05:03 +08:00
public ActionResult FAIcon()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
2016-10-23 20:05:03 +08:00
}
2016-11-02 00:59:58 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
[AllowAnonymous]
[ResponseCache(Duration = 600)]
public PartialViewResult IconView()
{
return PartialView("IconView");
}
/// <summary>
///
/// </summary>
/// <returns></returns>
2017-03-23 17:07:18 +08:00
public ActionResult Settings()
2016-11-02 00:59:58 +08:00
{
return View(new ThemeModel(this));
2016-11-02 00:59:58 +08:00
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Notifications()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
}
/// <summary>
///
/// </summary>
/// <returns></returns>
2017-03-23 17:21:58 +08:00
public ActionResult Profiles()
{
2018-06-07 00:45:47 +08:00
return View(new ProfilesModel(this));
}
2016-11-11 21:06:08 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Exceptions()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
}
2016-11-12 23:00:50 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Messages()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
2016-11-12 23:00:50 +08:00
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Tasks()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Mobile()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Api()
{
2018-06-07 00:45:47 +08:00
return View(new NavigatorBarModel(this));
}
2016-10-20 17:55:29 +08:00
}
}