Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 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);
 }