mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 18:47:55 +08:00
完成导航动态加载
This commit is contained in:
@@ -1,12 +1,25 @@
|
||||
using System.Web.Mvc;
|
||||
using Infrastructure;
|
||||
using OpenAuth.App;
|
||||
|
||||
namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
public class HomeController : BaseController
|
||||
{
|
||||
private ModuleManagerApp _app;
|
||||
|
||||
public HomeController()
|
||||
{
|
||||
_app = (ModuleManagerApp)DependencyResolver.Current.GetService(typeof(ModuleManagerApp));
|
||||
}
|
||||
|
||||
public string GetModules(int parentId = 0)
|
||||
{
|
||||
return JsonHelper.Instance.Serialize(_app.LoadByParent(parentId));
|
||||
}
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View();
|
||||
return View(_app.LoadByParent(0));
|
||||
}
|
||||
|
||||
public ActionResult Main()
|
||||
|
Reference in New Issue
Block a user