public Ticket(Passanger Passanger, int Price, Van Van, Train Train, Seat Seat, string PlaceArrival) { this.passanger = Passanger; this.price = Price; this.van = Van; this.train = Train; this.seat = Seat; this.placeArrival = PlaceArrival; }
public Van PickVan(List <Seat> SeatList, string Class, int Number) { Van pickedVan = VanList.FirstOrDefault(i => i.Class == Class && i.Number == Number); return(pickedVan); }
public Ticket GetTicket(Passanger passanger, Train PickedTrain, Van PickedVan, Seat PickedSeat, string PlaceArrival) { int price = 46; return(new Ticket(passanger, price, PickedVan, PickedTrain, PickedSeat, PlaceArrival)); }