private static LogEntryRecord Save(LogSourceType sourceType, uint triggerId, string title) { LogEntryRecord record = LogEntryRecord.CreateRecord(); record.TitleId = TitleIds[title]; record.Timestamp = DateTime.Now; record.TrigererId = triggerId; record.TriggererType = (byte)sourceType; record.Save(); return(record); }
private static LogEntryRecord Save(LogSourceType sourceType, uint triggerId, string title) { var newLog = LogEntryRecord.CreateRecord(); newLog.TitleId = TitleIds[title]; newLog.Timestamp = DateTime.Now; newLog.TrigererId = triggerId; newLog.TriggererType = (byte)sourceType; newLog.Save(); return(newLog); }