示例#1
0
 /// <summary>
 /// 查询角色下的用户列表
 /// </summary>
 /// <param name="repo"></param>
 /// <param name="roleId">角色Id</param>
 /// <returns></returns>
 public static UserList GetUserListByRoleId(this UserRepository repo, long roleId)
 {
     return(repo.Extension <UserRepositoryExtension>().GetUserListByRoleId(roleId));
 }
示例#2
0
 /// <summary>
 /// 查询组织下的用户列表
 /// </summary>
 /// <param name="repo"></param>
 /// <param name="groupId">组Id</param>
 /// <returns></returns>
 public static UserList GetUserListByGroupId(this UserRepository repo, long groupId)
 {
     return(repo.Extension <UserRepositoryGroupExtension>().GetUserListByGroupId(groupId));
 }
 /// <summary>
 /// 查询组织下的用户列表
 /// </summary>
 /// <param name="repo"></param>
 /// <param name="groupIdList">组Id</param>
 /// <returns></returns>
 public static UserList GetUserListByGroupId(this UserRepository repo, List <long> groupIdList)
 {
     return(repo.Extension <UserRepositoryGroupExtension>().GetUserListByGroupIdList(groupIdList));
 }