private void InsertLogFile(int loginId, string ipAddress, string type, string log)
        {
            using (MyDataClassesDataContext myDb = new MyDataClassesDataContext())
            {
                LogFile newLog = new LogFile();
                newLog.UserId = loginId;
                newLog.IPAddress = ipAddress;
                newLog.Type = type;
                newLog.Log = log;
                newLog.DateTime = DateTime.Now.AddHours(-4);

                myDb.LogFiles.InsertOnSubmit(newLog);
                myDb.SubmitChanges();
            }
        }
 partial void DeleteLogFile(LogFile instance);
 partial void UpdateLogFile(LogFile instance);
 partial void InsertLogFile(LogFile instance);