BootstrapAdmin11/Bootstrap.Admin/Controllers/AdminController.cs

126 lines
3.2 KiB
C#
Raw Normal View History

2016-10-20 17:55:29 +08:00
using Bootstrap.Admin.Models;
using System.Web.Mvc;
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()
{
var v = new NavigatorBarModel("~/Admin/Index");
2016-10-20 17:55:29 +08:00
return View(v);
}
2016-10-21 16:35:26 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
2016-10-20 17:55:29 +08:00
public ActionResult Users()
{
var v = new NavigatorBarModel("~/Admin/Users");
2016-10-20 17:55:29 +08:00
return View(v);
}
2016-10-23 20:05:03 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Groups()
{
var v = new NavigatorBarModel("~/Admin/Groups");
return View(v);
}
2016-10-29 16:46:02 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Dicts()
{
var v = new NavigatorBarModel("~/Admin/Dicts");
2016-10-29 16:46:02 +08:00
return View(v);
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Roles()
{
var v = new NavigatorBarModel("~/Admin/Roles");
return View(v);
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Menus()
{
var v = new NavigatorBarModel("~/Admin/Menus");
return View(v);
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Logs()
{
var v = new NavigatorBarModel("~/Admin/Logs");
return View(v);
}
/// <summary>
///
/// </summary>
/// <returns></returns>
2016-10-23 20:05:03 +08:00
[AllowAnonymous]
public ActionResult FAIcon()
{
return View();
}
2016-11-02 00:59:58 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Profiles()
{
var v = new NavigatorBarModel("~/Admin/Profiles");
2016-11-02 00:59:58 +08:00
return View(v);
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Notifications()
{
var v = new NavigatorBarModel("~/Admin/Notifications");
return View(v);
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Infos()
{
var v = new NavigatorBarModel("~/Admin/Infos");
return View(v);
}
2016-11-11 21:06:08 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Excep()
{
using (System.IO.StreamReader reader = new System.IO.StreamReader(Server.MapPath("~/App_Data/ErrorLog/Error2016-11-11.log")))
{
ViewBag.Content = new MvcHtmlString(reader.ReadToEnd().Replace("\r\n", "</br>"));
}
return View();
}
2016-10-20 17:55:29 +08:00
}
}