public async Task <IActionResult> InviteMultipleMembersAsync(Guid channelId, [FromBody] TransportModels.Request.Member.InviteMultipleMembersRequest request) { var inviteMultipleMembersRequest = new InviteMultipleMembersRequest(GetCurrentSaasUserId(), channelId, request.InvitedMembersIds); var channel = await _channelSocketService.InviteMultipleMembersAsync(inviteMultipleMembersRequest); return(Ok(channel)); }
public async Task InviteMultipleMembersAsync(SignalRRequest.Member.InviteMultipleMembersRequest request) { await ValidateAndExecuteAsync(request, new InviteMultipleMembersRequestValidator(), new TaskReference(async() => { var inviteMultipleMembersRequest = new DomainRequest.Member.InviteMultipleMembersRequest(Context.GetSaasUserId(), request.ChannelId, request.InvitedMembersIds); await _channelSocketService.InviteMultipleMembersAsync(inviteMultipleMembersRequest); }), request.RequestId); }