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()
|
|
|
|
|
{
|
2016-10-21 16:35:26 +08:00
|
|
|
|
var v = new NavigatorBarModel();
|
|
|
|
|
v.ShowMenu = "hide";
|
|
|
|
|
v.HomeUrl = "~/Admin";
|
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()
|
|
|
|
|
{
|
2016-10-21 16:35:26 +08:00
|
|
|
|
var v = new NavigatorBarModel();
|
|
|
|
|
v.ShowMenu = "hide";
|
|
|
|
|
v.Menus[1].Active = "active";
|
|
|
|
|
v.HomeUrl = "~/Admin";
|
2016-10-20 17:55:29 +08:00
|
|
|
|
return View(v);
|
|
|
|
|
}
|
2016-10-23 20:05:03 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2016-10-24 20:53:05 +08:00
|
|
|
|
public ActionResult Groups()
|
|
|
|
|
{
|
|
|
|
|
var v = new NavigatorBarModel();
|
|
|
|
|
v.ShowMenu = "hide";
|
|
|
|
|
v.Menus[3].Active = "active";
|
|
|
|
|
v.HomeUrl = "~/Admin";
|
|
|
|
|
return View(v);
|
|
|
|
|
}
|
2016-10-29 16:46:02 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public ActionResult Dicts()
|
|
|
|
|
{
|
|
|
|
|
var v = new NavigatorBarModel();
|
|
|
|
|
v.ShowMenu = "hide";
|
|
|
|
|
v.Menus[4].Active = "active";
|
|
|
|
|
v.HomeUrl = "~/Admin";
|
|
|
|
|
return View(v);
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-24 22:10:17 +08:00
|
|
|
|
public ActionResult Roles()
|
|
|
|
|
{
|
|
|
|
|
var v = new NavigatorBarModel();
|
|
|
|
|
v.ShowMenu = "hide";
|
|
|
|
|
v.Menus[2].Active = "active";
|
|
|
|
|
v.HomeUrl = "~/Admin";
|
|
|
|
|
return View(v);
|
|
|
|
|
}
|
2016-10-25 18:54:20 +08:00
|
|
|
|
public ActionResult Menus()
|
|
|
|
|
{
|
|
|
|
|
var v = new NavigatorBarModel();
|
|
|
|
|
v.ShowMenu = "hide";
|
|
|
|
|
v.Menus[0].Active = "active";
|
|
|
|
|
v.HomeUrl = "~/Admin";
|
|
|
|
|
return View(v);
|
|
|
|
|
}
|
2016-10-24 20:53:05 +08:00
|
|
|
|
/// <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();
|
|
|
|
|
v.ShowMenu = "hide";
|
|
|
|
|
v.Menus[5].Active = "active";
|
|
|
|
|
v.HomeUrl = "~/Admin";
|
|
|
|
|
return View(v);
|
|
|
|
|
}
|
2016-10-20 17:55:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|