Пример #1
0
 public async Task UpdateUserRelation(Role role, UserRoleRelation relation)
 {
     relation.Role = role;
     await _userRoleRelationStore.Update(relation);
 }
Пример #2
0
 public async Task UpdateUserRelation(UserRoleRelation relation)
 {
     await _imp.UpdateUserRelation(this, relation);
 }
Пример #3
0
 public async Task AddUserRelation(Role role, UserRoleRelation relation)
 {
     relation.Role = role;
     await _userRoleRelationStore.Add(relation);
 }
Пример #4
0
 /// <summary>
 /// 增加用户关联关系
 /// </summary>
 /// <param name="userKey"></param>
 /// <returns></returns>
 public async Task AddUserRelation(UserRoleRelation relation)
 {
     await _imp.AddUserRelation(this, relation);
 }