Пример #1
0
 /// <summary>
 /// 根据权限清除用户授权
 /// </summary>
 /// <param name="permissionIds">权限编号</param>
 /// <returns>返回执行结果</returns>
 public Result ClearByPermission(IEnumerable <long> permissionIds)
 {
     if (permissionIds.IsNullOrEmpty())
     {
         return(Result.FailedResult("没有指定任何用户信息"));
     }
     userPermissionRepository.RemoveBySecond(permissionIds.Select(c => Permission.Create(c)));
     return(Result.SuccessResult("修改成功"));
 }