更改PDM文件

删除为用户分配可见机构(本身有机构功能)
删除为角色分配机构(本身有机构多对多功能)
This commit is contained in:
yubaolee
2016-09-04 23:34:16 +08:00
parent d5a6ffe3b8
commit 56d5ea0e8a
26 changed files with 1293 additions and 1721 deletions

View File

@@ -3,7 +3,9 @@ using OpenAuth.App;
using OpenAuth.Domain;
using System;
using System.Linq;
using System.Web.Http;
using System.Web.Mvc;
using Newtonsoft.Json.Linq;
using OpenAuth.Mvc.Models;
namespace OpenAuth.Mvc.Controllers
@@ -26,12 +28,12 @@ namespace OpenAuth.Mvc.Controllers
}
//添加或修改角色
[HttpPost]
public string Add(Role role)
[System.Web.Mvc.HttpPost]
public string Add([FromBody]JObject obj)
{
try
{
_app.AddOrUpdate(role);
_app.AddOrUpdate(obj);
}
catch (Exception ex)
{