public async Task SendMessage()
        {
            var uploadedAttachment = UploadAttachment();

            if (uploadedAttachment != null && uploadedAttachment.Count > 0)
            {
                var chatId = GetChatId();
                var attachmentDisplayMold =
                    uploadedAttachment
                    .Select(s => _mapper.Map <AttachmentHubMold>(s)).ToList();

                await _hub.SendMessage(new HubMessage(chatId, MessageText, attachmentDisplayMold));

                IsOpen      = false;
                MessageText = string.Empty;
            }
        }
 public async void SendMessage(SendMesg mesg)
 {
     await _chatHub.SendMessage(mesg);
 }