public BO.Autobus DOtoBOadapter(couche_DL.DLAPI.DO.Autobus bus) { BO.Autobus x = new BO.Autobus(); x.fromDate = bus.fromDate; x.fuelremain = bus.fuelremain; x.licenseNum = bus.licenseNum; x.Status = (BO.BusStatus)((int)bus.Status); x.totalTrip = bus.totalTrip; return(x); }
public bool CreateAutobus(BO.Autobus bus) { couche_DL.DLAPI.DO.Autobus x = BOtoDOadapter(bus); return(DL.CreateAutobus(x)); }
public bool UpdateAutobus(BO.Autobus adjacent) { return(DL.UpdateAutobus(BOtoDOadapter(adjacent))); }