mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-05-08 22:58:06 +08:00
35 lines
818 B
C#
35 lines
818 B
C#
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(_app.LoadByParent(0));
|
|
}
|
|
|
|
public ActionResult Main()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult Login()
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
} |