mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-05-08 14:48:03 +08:00
40 lines
897 B
C#
40 lines
897 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using Newtonsoft.Json;
|
|
using OpenAuth.App;
|
|
|
|
namespace OpenAuth.Mvc.Controllers
|
|
{
|
|
public class HomeController : BaseController
|
|
{
|
|
private LoginApp _loginApp;
|
|
|
|
public HomeController()
|
|
{
|
|
_loginApp = (LoginApp)DependencyResolver.Current.GetService(typeof(LoginApp));
|
|
}
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ContentResult Main()
|
|
{
|
|
return Content("欢迎使用基于DDD的权限管理系统");
|
|
}
|
|
|
|
public ActionResult Login()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public string LoadUsers()
|
|
{
|
|
return JsonConvert.SerializeObject(_loginApp.LoadUsers());
|
|
}
|
|
|
|
}
|
|
} |