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(); }
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); }
public void UpdateLocation(string TripID, EZMoveCoordinates TripCoordinates, int LoginID) { CacheImplementor.UpdateTripLocation(TripID, TripCoordinates); //tripRepos.UpdateLocation(TripID, TripCoordinates, LoginID); }