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>
|
2016-10-24 20:53:05 +08:00
|
|
|
|
public ActionResult Groups()
|
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
return View(new NavigatorBarModel(this));
|
2016-10-24 20:53:05 +08:00
|
|
|
|
}
|
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
|
|
|
|
}
|
2016-11-10 14:06:00 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2016-10-24 22:10:17 +08:00
|
|
|
|
public ActionResult Roles()
|
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
return View(new NavigatorBarModel(this));
|
2016-10-24 22:10:17 +08:00
|
|
|
|
}
|
2016-11-10 14:06:00 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2016-10-25 18:54:20 +08:00
|
|
|
|
public ActionResult Menus()
|
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
return View(new NavigatorBarModel(this));
|
2016-10-25 18:54:20 +08:00
|
|
|
|
}
|
2016-11-10 14:06:00 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2016-11-02 15:35:25 +08:00
|
|
|
|
public ActionResult Logs()
|
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
return View(new NavigatorBarModel(this));
|
2016-11-02 15:35:25 +08:00
|
|
|
|
}
|
2016-10-24 20:53:05 +08:00
|
|
|
|
/// <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>
|
2017-04-14 15:20:48 +08:00
|
|
|
|
[AllowAnonymous]
|
2017-01-01 21:48:30 +08:00
|
|
|
|
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
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
return View(new NavigatorBarModel(this));
|
2016-11-02 00:59:58 +08:00
|
|
|
|
}
|
2016-11-07 16:17:57 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2016-11-11 13:11:57 +08:00
|
|
|
|
public ActionResult Notifications()
|
2016-11-07 16:17:57 +08:00
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
return View(new NavigatorBarModel(this));
|
2016-11-07 16:17:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2017-03-23 17:21:58 +08:00
|
|
|
|
public ActionResult Profiles()
|
2016-11-07 16:17:57 +08:00
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
return View(new ProfilesModel(this));
|
2016-11-07 16:17:57 +08:00
|
|
|
|
}
|
2016-11-11 21:06:08 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2016-11-11 21:44:41 +08:00
|
|
|
|
public ActionResult Exceptions()
|
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
return View(new NavigatorBarModel(this));
|
2016-11-11 21:44:41 +08:00
|
|
|
|
}
|
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
|
|
|
|
}
|
2016-11-19 20:08:02 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2016-11-17 09:41:13 +08:00
|
|
|
|
public ActionResult Tasks()
|
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
return View(new NavigatorBarModel(this));
|
2016-11-17 09:41:13 +08:00
|
|
|
|
}
|
2016-11-19 20:08:02 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public ActionResult Mobile()
|
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
return View(new NavigatorBarModel(this));
|
2016-11-19 20:08:02 +08:00
|
|
|
|
}
|
2016-12-22 22:36:18 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public ActionResult Api()
|
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
return View(new NavigatorBarModel(this));
|
2016-12-22 22:36:18 +08:00
|
|
|
|
}
|
2016-10-20 17:55:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|