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

            return(pickedSeat);
        }
Esempio n. 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));
        }