private Message ConvertMessage(Messages dbMessage)
        {
            var user = this._db.Users.FirstOrDefault(x => x.Id == dbMessage.Id_Sender);
            var sender = (user != null) ? user.Nickname : string.Empty;

            return new Message()
            {
                Sender = sender,
                Timestamp = dbMessage.Timestamp.GetValueOrDefault(),
                MessageText = dbMessage.MessageText
            };
        }
        private async Task LogMessage(Message message)
        {
            try
            {
                var user = this._db.Users.First(x => x.Nickname == message.Sender);

                var dbMessage = new Messages()
                {
                    Id = this._db.Messages.Count() + 1,
                    Id_Sender = user.Id,
                    Timestamp = message.Timestamp,
                    MessageText = message.MessageText
                };

                this._db.Messages.Add(dbMessage);
                await this._db.SaveChangesAsync();
            }
            catch(Exception ex)
            {
                Console.WriteLine("\nSave Message to DB error:{0}\n",ex.Message);
            }
        }