Exemple #1
0
 public async Task DeleteMemberAsync(SignalRRequest.Member.DeleteMemberRequest request)
 {
     await ValidateAndExecuteAsync(request, new DeleteMemberRequestValidator(), new TaskReference(async() =>
     {
         var deleteMemberRequest = new DomainRequest.Member.DeleteMemberRequest(Context.GetSaasUserId(), request.ChannelId, request.MemberId);
         await _channelSocketService.DeleteMemberFromChannelAsync(deleteMemberRequest);
     }),
                                   request.RequestId);
 }
Exemple #2
0
        public async Task <IActionResult> DeleteMemberFromChannelAsync(Guid channelId, Guid memberId)
        {
            await _channelSocketService.DeleteMemberFromChannelAsync(new DeleteMemberRequest(GetCurrentSaasUserId(), channelId, memberId));

            return(Ok());
        }