public void Update(Log log)
        {
            Log rLog = GetLogById(log.ID);

            if (rLog == null)
                return;

            rLog.Exception = log.Exception;
            rLog.LogType = log.LogType;
            rLog.ExceptionLocation = log.ExceptionLocation;
            rLog.ClientInformation = log.ClientInformation;
            db.SaveChanges();
        }
 public void Insert(Log log)
 {
     db.Logs.Add(log);
     db.SaveChanges();
 }