Exemple #1
0
        public async Task <int> SendMessageToChat(SendMessageModel message)
        {
            int res = 0;

            _logger.Info($"{"ChatService:",-20} >>> {"SendMessageToChat",-20} >>> {"Start model:",-10} {JsonConvert.SerializeObject(message)}.");

            if (message == null)
            {
                return(0);
            }

            res = await _chatRepository.AddSendMessages(message);

            _logger.Debug($"{"ChatService:",-20} >>> {"SendMessageToChat",-20} >>> {"Model:",-10} {JsonConvert.SerializeObject(message)}, {"Send:",-10}{res}.");;
            return(res);
        }