예제 #1
0
        public Seat PickSeat(int Number, string Type)
        {
            Seat pickedSeat = SeatList.FirstOrDefault(i => i.Number == Number && i.Type == Type && !i.IsOccuped);

            return(pickedSeat);
        }
예제 #2
0
        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));
        }