예제 #1
0
 public void UpdateLocation(string TripID, EZMoveCoordinates TripCoordinates, int LoginID)
 {
     dbHelper.CreateCommand("updatetriplocation", System.Data.CommandType.StoredProcedure);
     dbHelper.AddParameter("CurrTripID", TripID);
     dbHelper.AddParameter("PersonID", LoginID);
     dbHelper.AddParameter("Lat", TripCoordinates.Latitude);
     dbHelper.AddParameter("Lon", TripCoordinates.Longitude);
     dbHelper.ExecuteNonQuery();
 }
예제 #2
0
        public static Trip UpdateTripLocation(string TripID, EZMoveCoordinates ezMoveCoordinates)
        {
            var trip = GetTrip(TripID);

            if (trip != null)
            {
                trip.CurrentLocation.Latitude  = ezMoveCoordinates.Latitude;
                trip.CurrentLocation.Longitude = ezMoveCoordinates.Longitude;
            }
            return(trip);
        }
예제 #3
0
 public void UpdateLocation(string TripID, EZMoveCoordinates TripCoordinates, int LoginID)
 {
     CacheImplementor.UpdateTripLocation(TripID, TripCoordinates);
     //tripRepos.UpdateLocation(TripID, TripCoordinates, LoginID);
 }