/// \brief This method Save carrier /// \details <b>Details</b> /// This method will save carrier /// \return void public bool Save() { bool flag = false; if (command == "UPDATE") { flag = new CarrierBizDAO().UpdateCarrier(this); } else { flag = new CarrierBizDAO().InsertCarrier(this); } return(flag); }
public List <Carrier> GetAvailabilty(string orderID, string carrierID) { var contractsList = new CarrierBizDAO().GetAvailabilty(orderID, carrierID); return(contractsList); }
/// \brief This method GetCarriers carrier /// \details <b>Details</b> /// This method will get carriers /// \return void public List <Carrier> GetCarriers(string pattern) { var contractsList = new CarrierBizDAO().GetCarriers(pattern); return(contractsList); }
/// \brief This method GetById /// \details <b>Details</b> /// This method will get carrier by ID /// \return void public Carrier GetById(string contractID) { var carriers = new CarrierBizDAO().GetCarriers(contractID); return(carriers[0]); }
/// \brief This method GetLastCarrierID /// \details <b>Details</b> /// This method will get the last carrier by ID /// \return void public string GetLastCarrierID() { var carrier = new CarrierBizDAO().GetLastCarrierID(); return(carrier); }
/// \brief This method GetCarrierIDbyDepotCity /// \details <b>Details</b> /// This method will get the carrier ID by depotCity /// \return void public string GetCarrierIDbyDepotCity(string depotCity) { var carrier = new CarrierBizDAO().GetCarrierIDbyDepotCity(depotCity); return(carrier); }