public async Task <bool> SendMessage(string CID, string UID, Message message) { await _hub.GroupCast(UID, CID, message.Body); var channel = await GetChannel(CID); channel.Messages.Add(message); var ack = await _channel.ReplaceOneAsync(x => x.ChannelId == CID, channel); return(ack.IsAcknowledged); }