mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 18:47:55 +08:00
采用全新的数据库架构
This commit is contained in:
33
OpenAuth.Mvc/Controllers/OrgManagerController.cs
Normal file
33
OpenAuth.Mvc/Controllers/OrgManagerController.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using Infrastructure;
|
||||
using OpenAuth.App;
|
||||
|
||||
namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
public class OrgManagerController : BaseController
|
||||
{
|
||||
private OrgManagerApp _orgApp;
|
||||
|
||||
public OrgManagerController()
|
||||
{
|
||||
_orgApp = (OrgManagerApp) DependencyResolver.Current.GetService(typeof (OrgManagerApp));
|
||||
}
|
||||
//
|
||||
// GET: /OrgManager/
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
public string LoadOrg()
|
||||
{
|
||||
var orgs = _orgApp.GetAll();
|
||||
return JsonHelper.Instance.Serialize(orgs);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user