public void InsertChatLog(ChatType type, long characterId, string message, string ipAddress) { LogChatDTO log = new LogChatDTO { CharacterId = characterId, ChatMessage = message, IpAddress = ipAddress, ChatType = (byte)type, Timestamp = DateTime.Now }; DAOFactory.LogChatDAO.InsertOrUpdate(ref log); }
public void InsertChatLog(ChatType type, long characterId, string message, string ipAddress) { LogChatDTO log = new LogChatDTO { CharacterId = characterId, ChatMessage = message, IpAddress = ipAddress, ChatType = (byte)type, Timestamp = DateTime.Now }; logChat.Add(log); }