public Task <bool> AddUserMessage(UserMessage userMessage)
        {
            if (userMessage.IsValidate)
            {
                return(Task.FromResult(false));
            }

            var result = UserMessageDb.Insert(new UserMessage
            {
                MessageId  = userMessage.MessageId,
                ReceiverId = userMessage.ReceiverId,
            });

            return(Task.FromResult(result));
        }
        public async Task <bool> ReceiveMessages(MessageSearchOptions options)
        {
            var unreadMessages = await GetUnReadMessage(options);

            foreach (var message in unreadMessages)
            {
                UserMessageDb.Insert(
                    new UserMessage
                {
                    Id         = Guid.NewGuid().ToString(),
                    MessageId  = message.Message.Id,
                    ReceiverId = options?.reveiverId,
                    ServiceId  = options?.serviceId,
                    StatusId   = Guid.Empty.ToString()
                });
            }

            return(true);
        }