Exemplo n.º 1
0
 public ActionResult SetRoleRight(int roleId, int[] permissionArr, bool isChecked)
 {
     roleService.AddRoleRight(roleId, permissionArr, isChecked);
     return(Json(new { status = 1, message = isChecked ? "角色权限设置成功!" : "角色权限取消成功!" }));
 }