BootstrapAdmin/Bootstrap.Admin/Controllers/AdminController.cs

37 lines
901 B
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()
{
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.BreadcrumbName = "用户管理";
v.ShowMenu = "hide";
v.Menus[1].Active = "active";
v.HomeUrl = "~/Admin";
2016-10-20 17:55:29 +08:00
return View(v);
}
}
}