mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-24 18:04:55 +08:00
45 lines
1.0 KiB
C#
45 lines
1.0 KiB
C#
using System.Web.Mvc;
|
|
using Infrastructure;
|
|
using OpenAuth.App;
|
|
using OpenAuth.App.SSO;
|
|
using OpenAuth.App.ViewModel;
|
|
using OpenAuth.Mvc.Models;
|
|
|
|
namespace OpenAuth.Mvc.Controllers
|
|
{
|
|
public class HomeController : BaseController
|
|
{
|
|
private ModuleManagerApp _app;
|
|
|
|
public HomeController()
|
|
{
|
|
_app = AutofacExt.GetFromFac<ModuleManagerApp>();
|
|
}
|
|
|
|
public ActionResult Index()
|
|
{
|
|
var user = AuthUtil.GetCurrentUser();
|
|
return View(user.Modules);
|
|
}
|
|
|
|
public ActionResult Main()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult Git()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 所有页面按钮控制分部视图
|
|
/// </summary>
|
|
/// <returns>ActionResult.</returns>
|
|
[ChildActionOnly]
|
|
public ActionResult MenuHeader()
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
} |