コード例 #1
0
 public async Task<int> UpdateUserPermissions(UpdateUserPermissionInput input)
 {
     int result = this._permissionTable.UpdateUserPermissions(input.UserId, input.PermissionIds);
     if (result > 0)
     {
         int num = await this.GenerateRolesForUser(input.UserId);
     }
     return result;
 }
コード例 #2
0
 public async Task<ResultUpdateOutput> UpdateUserPermissions(UpdateUserPermissionInput input)
 {
     var result = new ResultUpdateOutput
                  {
         Status = 1
     };
     int status = await _permissionBll.UpdateUserPermissions(input);
     if (status > 0)
         result.Status = 0;
     return result;
 }