mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-21 02:57:54 +08:00
更改PDM文件
删除为用户分配可见机构(本身有机构功能) 删除为角色分配机构(本身有机构多对多功能)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user