Esempio n. 1
0
File: Role.cs Progetto: rhw1111/DCEM
 public async Task UpdateUserRelation(Role role, UserRoleRelation relation)
 {
     relation.Role = role;
     await _userRoleRelationStore.Update(relation);
 }
Esempio n. 2
0
File: Role.cs Progetto: rhw1111/DCEM
 public async Task UpdateUserRelation(UserRoleRelation relation)
 {
     await _imp.UpdateUserRelation(this, relation);
 }
Esempio n. 3
0
File: Role.cs Progetto: rhw1111/DCEM
 public async Task AddUserRelation(Role role, UserRoleRelation relation)
 {
     relation.Role = role;
     await _userRoleRelationStore.Add(relation);
 }
Esempio n. 4
0
File: Role.cs Progetto: rhw1111/DCEM
 /// <summary>
 /// 增加用户关联关系
 /// </summary>
 /// <param name="userKey"></param>
 /// <returns></returns>
 public async Task AddUserRelation(UserRoleRelation relation)
 {
     await _imp.AddUserRelation(this, relation);
 }