Exemple #1
0
        public List <BookingMini> GetBookings()
        {
            // call : http://localhost:57100/api/BookingsInfo/GetBookings


            // only the bookings with a travel date superior or equal to today need to be displayed because in theory the full cycle of a booking should have been completed by the travel date (cancellation or confirmation are unlikely after the travel date )

            List <BookingMini> listBookingMini = BookingsExtraction.ExtractBookingsFutureTravelling();

            return(listBookingMini);
        }
        // GET: BookingsInfoMVC
        public ActionResult Index()
        {
            List <BookingMini> listBookingMini = BookingsExtraction.ExtractBookingsFutureTravelling();

            return(View(listBookingMini));
        }