/// \brief This method Save trip /// \details <b>Details</b> /// This method will save trip /// \return void public bool Save() { bool flag = false; if (command == "UPDATE") { flag = new TripBizDAO().UpdateTrip(this); } else if (command == "INSERT") { flag = new TripBizDAO().InsertTrip(this); } return(flag); }
public List <Trip> newTripID() { var tripList = new TripBizDAO().GetTripID(); return(tripList); }
public List <Trip> GetTripBilling(string orderID) { var billingList = new TripBizDAO().GetTripBilling(orderID); return(billingList); }
public List <Trip> GetShowTripsForBillings(string orderID, string carrierID) { var billingList = new TripBizDAO().GetShowTripsForBillings(orderID, carrierID); return(billingList); }
/// \brief This method Delete /// \details <b>Details</b> /// This method will delete trip /// \return void public List <Trip> GetTrips(string tripID) { var tripList = new TripBizDAO().GetTrips(tripID); return(tripList); }
public List <Trip> GetTripsST(string startCityID, string endCityID) { var tripList = new TripBizDAO().GetTrips(startCityID, endCityID); return(tripList); }
/// \brief This method Delete /// \details <b>Details</b> /// This method will delete trip /// \return void public Trip GetById(string tripID) { var trips = new TripBizDAO().GetTrips(tripID); return(trips[0]); }