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(); }
public IShowTicketValueList InsertValue(BuyingValueForInsert InsertValue) { ShowTicketValue = Base.InsertValueInTicketBS(InsertValue, ShowTicketValue); ShowTicketValueList = repository.InsertShowValueIntoClass(InsertValue, ShowTicketValue, ShowTicketValueList); return(ShowTicketValueList); }