Exemplo n.º 1
0
        // returns a list of FlightEvents contracts from FlightSearchService
        // links:
        //  docLink: http://sql2x.org/documentationLink/0b582d9b-64df-473e-9f42-7ce7701e67f0
        // parameters:
        //  flightId: filter by this key
        public virtual List <FlightEventsContract> FlightEvents(System.Guid flightId)
        {
            // transfer all FlightEvents serialized objects from FlightSearch as FlightEvents contracts
            var dataAccessLayer    = new SolutionNorSolutionPort.DataAccessLayer.FlightSearch();
            var businessLogicLayer = new FlightEvents();

            return(businessLogicLayer.FlightEventsFromDal(dataAccessLayer.FlightEvents(flightId)));
        }
Exemplo n.º 2
0
        // returns a list of FlightsForPeriod contracts
        // links:
        //  docLink: http://sql2x.org/documentationLink/eb26aecd-6edc-44ae-938f-42f53929062d
        // parameters:
        //  departureAirportId: filter by this key
        //  arrivalAirportId: filter by this key
        //  fromDateTime: filter by this key
        //  untilDateTime: filter by this key
        public List <FlightsForPeriodContract> FlightsForPeriod(System.Guid departureAirportId, System.Guid arrivalAirportId, System.DateTime fromDateTime, System.DateTime untilDateTime)
        {
            // transfer all FlightsForPeriod serialized objects from FlightSearch as FlightsForPeriod contracts
            var dataAccessLayer    = new SolutionNorSolutionPort.DataAccessLayer.FlightSearch();
            var businessLogicLayer = new FlightsForPeriod();

            return(businessLogicLayer.FlightsForPeriodFromDal(dataAccessLayer.FlightsForPeriod(departureAirportId, arrivalAirportId, fromDateTime, untilDateTime)));
        }
Exemplo n.º 3
0
        // returns a list of FlightsOpenForCheckinWithDescription contracts
        // links:
        //  docLink: http://sql2x.org/documentationLink/eb26aecd-6edc-44ae-938f-42f53929062d
        // parameters:
        //  departureAirportId: filter by this key
        //  arrivalAirportId: filter by this key
        //  fromDateTime: filter by this key
        //  untilDateTime: filter by this key
        public List <FlightsOpenForCheckinWithDescriptionContract> FlightsOpenForCheckinWithDescription(System.Guid departureAirportId, System.Guid arrivalAirportId, System.DateTime fromDateTime, System.DateTime untilDateTime)
        {
            // transfer all FlightsOpenForCheckinWithDescription serialized objects from FlightSearch as FlightsOpenForCheckinWithDescription contracts
            var dataAccessLayer    = new SolutionNorSolutionPort.DataAccessLayer.FlightSearch();
            var businessLogicLayer = new FlightsOpenForCheckinWithDescription();

            return(businessLogicLayer.FlightsOpenForCheckinWithDescriptionFromDal(dataAccessLayer.FlightsOpenForCheckinWithDescription(departureAirportId, arrivalAirportId, fromDateTime, untilDateTime)));
        }
Exemplo n.º 4
0
        // returns a list of AirportsAvailableWithFilter contracts
        // links:
        //  docLink: http://sql2x.org/documentationLink/eb26aecd-6edc-44ae-938f-42f53929062d
        // parameters:
        //  departureAirportId: filter by this key
        //  arrivalAirportId: filter by this key
        //  fromDateTime: filter by this key
        //  untilDateTime: filter by this key
        public List <AirportsAvailableWithFilterContract> AirportsAvailableWithFilter(System.Guid departureAirportId, System.Guid arrivalAirportId, System.DateTime fromDateTime, System.DateTime untilDateTime)
        {
            // transfer all AirportsAvailableWithFilter serialized objects from FlightSearch as AirportsAvailableWithFilter contracts
            var dataAccessLayer    = new SolutionNorSolutionPort.DataAccessLayer.FlightSearch();
            var businessLogicLayer = new AirportsAvailableWithFilter();

            return(businessLogicLayer.AirportsAvailableWithFilterFromDal(dataAccessLayer.AirportsAvailableWithFilter(departureAirportId, arrivalAirportId, fromDateTime, untilDateTime)));
        }
Exemplo n.º 5
0
        // returns a list of FlightHistory contracts
        // links:
        //  docLink: http://sql2x.org/documentationLink/eb26aecd-6edc-44ae-938f-42f53929062d
        // parameters:
        //  flightId: filter by this key
        public List <FlightHistoryContract> FlightHistory(System.Guid flightId)
        {
            // transfer all FlightHistory serialized objects from FlightSearch as FlightHistory contracts
            var dataAccessLayer    = new SolutionNorSolutionPort.DataAccessLayer.FlightSearch();
            var businessLogicLayer = new FlightHistory();

            return(businessLogicLayer.FlightHistoryFromDal(dataAccessLayer.FlightHistory(flightId)));
        }
Exemplo n.º 6
0
        // returns a list of FlightsOnBooking contracts
        // links:
        //  docLink: http://sql2x.org/documentationLink/eb26aecd-6edc-44ae-938f-42f53929062d
        // parameters:
        //  bookingId: filter by this key
        public List <FlightsOnBookingContract> FlightsOnBooking(System.Guid bookingId)
        {
            // transfer all FlightsOnBooking serialized objects from FlightSearch as FlightsOnBooking contracts
            var dataAccessLayer    = new SolutionNorSolutionPort.DataAccessLayer.FlightSearch();
            var businessLogicLayer = new FlightsOnBooking();

            return(businessLogicLayer.FlightsOnBookingFromDal(dataAccessLayer.FlightsOnBooking(bookingId)));
        }