public void PublishTrackingInfo(long trackId, TrackLocation location)
        {
            var enumerator = TrackStorage.userTracks.GetEnumerator();

            while (enumerator.MoveNext())
            {
                var val = (TrackLocation)enumerator.Value;
                if (val.TrackNo == trackId)
                {
                    val = location;
                    break;
                }
            }
            //TrackStorage.userTracks[trackId] = location;\
        }
        public long StartTracking(String deviceId, TrackLocation location)
        {
            Random random  = new Random();
            int    trackNo = random.Next(1000000, 9999999);

            if (TrackStorage.userTracks[deviceId] == null)
            {
                location.TrackNo = trackNo;
                TrackStorage.userTracks.Add(deviceId, location);
            }
            else
            {
                var locationInstance = (TrackLocation)TrackStorage.userTracks[deviceId];
                trackNo          = locationInstance.TrackNo;
                location.TrackNo = trackNo;
                TrackStorage.userTracks[deviceId] = location;
            }
            return(trackNo);
        }