Ejemplo n.º 1
0
        private void WriteExitPerimeterEvent(TrackLocation exitTrackLocation)
        {
            if (exitTrackLocation == null)
            {
                return;
            }

            Log.Debug(this.GetType().Name, "Exit Perimeter");
            var entry = new TrackLocationLogEntry { LogEntry = Constants.ExitPerimeter, TrackLocationId = exitTrackLocation.ID, LocationName = exitTrackLocation.LocationName };
            entry.LogDateTime = (DateTime.Now);
            int response = this.timeTrackerWorkspace.SaveTrackLocationLogEntry(entry);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Saves the track location log entry.
 /// </summary>
 /// <param name="trackLocationLogEntry">The track location log entry.</param>
 /// <returns></returns>
 public int SaveTrackLocationLogEntry(TrackLocationLogEntry trackLocationLogEntry)
 {
     return this.database.SateEntity(trackLocationLogEntry);
 }