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); }
/// <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)); }