public void AddSystemLog(SystemLog sysLog) { try { using (var db = new connectionsLinqDataContext()) { //Log log = new Log(); //log.LogId = error.logId; //log.PriorityLogEnum = error.Log.PriorityLogEnum; //db.Logs.InsertOnSubmit(log); db.Logs.InsertOnSubmit(sysLog.Log); db.SystemLogs.InsertOnSubmit(sysLog); db.SubmitChanges(); } } catch (Exception) { return; } }