예제 #1
0
        public async Task <IActionResult> InviteUsersAsync(List <string> emails)
        {
            var user = await _userQueryService.GetUserByIdAsync(User.GetUserId());

            var workspace = await _workspaceQueryService.GetWorkspaceByIdAsync(User.GetWorkspaceId());

            await _userCommandService.InviteUsersAsync(user, workspace, emails);

            return(Ok());
        }