diff --git a/OpenAuth.Mvc/Controllers/HomeController.cs b/OpenAuth.Mvc/Controllers/HomeController.cs index 48edeb93..ed45d07e 100644 --- a/OpenAuth.Mvc/Controllers/HomeController.cs +++ b/OpenAuth.Mvc/Controllers/HomeController.cs @@ -1,6 +1,8 @@ using System.Web.Mvc; using Infrastructure; +using Infrastructure.Helper; using OpenAuth.App; +using OpenAuth.App.ViewModel; namespace OpenAuth.Mvc.Controllers { @@ -19,7 +21,8 @@ namespace OpenAuth.Mvc.Controllers } public ActionResult Index() { - return View(_app.LoadByParent(0)); + var user = SessionHelper.GetSessionUser(); + return View(user.Modules); } public ActionResult Main() diff --git a/OpenAuth.Mvc/Views/Home/Index.cshtml b/OpenAuth.Mvc/Views/Home/Index.cshtml index 50fe46e5..5bade585 100644 --- a/OpenAuth.Mvc/Views/Home/Index.cshtml +++ b/OpenAuth.Mvc/Views/Home/Index.cshtml @@ -1,4 +1,4 @@ -@model List +@model List @@ -204,12 +204,12 @@ {
  • @module.Name
  • - foreach (var child in module.Childern) + @*foreach (var child in module.Childern) {
  • @child.Name
  • - } + }*@ }