public IFreeList GetTrainFromBD(IBookingValue bookingValue) { freeTrainCar = Base.GetTrain(bookingValue, freeTrainCar); allFreeTrainInfo = repository.InsertInAllFreeTrainInfo(freeTrainCar, bookingValue); return(allFreeTrainInfo); }
public Conection() { freeTrainCar = new FreeTrainCar(); Base = new DBConnect(); allFreeTrainInfo = new AllFreeTrainInfoList();; repository = new Repository(); freeSeat = new FreeTrainCar(); freeSeatlist = new FreeSeatModellist(); seatInfo = new SeatInfo(); buying = new List <BuyingValue>(); ShowTicketValue = new List <ShowTicketValue>(); ShowTicketValueList = new ShowTicketValueList(); stationListValue = new StationList(); }