Ejemplo n.º 1
0
 public async Task<int> UpdateGroupPermissions(UpdateGroupPermissionInput input)
 {
     int result = this._permissionTable.UpdateGroupPermissions(input.GroupId, input.PermissionIds);
     if (result > 0)
     {
         int num = await this.GenerateRolesForGroup(input.GroupId);
     }
     return result;
 }
Ejemplo n.º 2
0
 public async Task<ResultUpdateOutput> UpdateGroupPermissions(UpdateGroupPermissionInput input)
 {
     var result = new ResultUpdateOutput
                  {
         Status = 1
     };
     int status = await _permissionBll.UpdateGroupPermissions(input);
     if (status > 0)
         result.Status = 0;
     return result;
 }