public IFreeSeatList GetFreeSeatFromBase(IBookingValueForSeat bookingValueForSeat) { freeSeat = Base.GetFreeSeat(bookingValueForSeat, freeSeat); freeSeatlist = repository.InsertIntoFreeSeatList(freeSeat, bookingValueForSeat); return(freeSeatlist); }
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(); }