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))); }
public IEnumerable <IUserListItem> GetUsers() { var mapper = new UserListItemMapper(); return(mapper.Map(queryService.GetUsers())); }
public IEnumerable <IUserListItem> GetGroupMembers(Guid groupId) { var mapper = new UserListItemMapper(); return(mapper.Map(queryService.GetGroupMembers(groupId))); }