示例#1
0
        public IUserListItem RemoveGroupMember(Guid groupId, Guid userId)
        {
            userContext.CheckPermission(Permissions.UserMaintenance);

            var command = new RemoveGroupMemberCommand(groupId, userId);

            commandBus.Value.Send(Envelope.Create(command));

            var mapper = new UserListItemMapper();

            return(mapper.Map(queryService.GetUser(userId)));
        }
示例#2
0
        public IEnumerable <IUserListItem> GetUsers()
        {
            var mapper = new UserListItemMapper();

            return(mapper.Map(queryService.GetUsers()));
        }
示例#3
0
        public IEnumerable <IUserListItem> GetGroupMembers(Guid groupId)
        {
            var mapper = new UserListItemMapper();

            return(mapper.Map(queryService.GetGroupMembers(groupId)));
        }