public Seat PickSeat(int Number, string Type) { Seat pickedSeat = SeatList.FirstOrDefault(i => i.Number == Number && i.Type == Type && !i.IsOccuped); return(pickedSeat); }
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)); }