BootstrapAdmin11/Bootstrap.Admin/Controllers/AdminController.cs

98 lines
2.5 KiB
C#

using Bootstrap.Admin.Models;
using System.Web.Mvc;
namespace Bootstrap.Admin.Controllers
{
/// <summary>
///
/// </summary>
public class AdminController : Controller
{
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Index()
{
var v = new NavigatorBarModel();
v.ShowMenu = "hide";
v.HomeUrl = "~/Admin";
return View(v);
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Users()
{
var v = new NavigatorBarModel();
v.ShowMenu = "hide";
v.Menus[1].Active = "active";
v.HomeUrl = "~/Admin";
return View(v);
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public ActionResult Groups()
{
var v = new NavigatorBarModel();
v.ShowMenu = "hide";
v.Menus[3].Active = "active";
v.HomeUrl = "~/Admin";
return View(v);
}
/// <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);
}
public ActionResult Roles()
{
var v = new NavigatorBarModel();
v.ShowMenu = "hide";
v.Menus[2].Active = "active";
v.HomeUrl = "~/Admin";
return View(v);
}
public ActionResult Menus()
{
var v = new NavigatorBarModel();
v.ShowMenu = "hide";
v.Menus[0].Active = "active";
v.HomeUrl = "~/Admin";
return View(v);
}
/// <summary>
///
/// </summary>
/// <returns></returns>
[AllowAnonymous]
public ActionResult FAIcon()
{
return View();
}
/// <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);
}
}
}