예제 #1
0
        /// <summary>
        /// Gets a list with all the bookings in the database
        /// </summary>
        /// <returns></returns>
        public List <Model.Booking> GetAll()
        {
            IBookingServices Service = new BookingServicesClient();

            try {
                var bookings = Service.GetAll();
                return(GetClientSideBooking(bookings));
            }
            catch (NullReferenceException NE) {
                Console.WriteLine(NE);
                Console.ReadLine();
                return(null);
            }
        }
예제 #2
0
        /// <summary>
        /// Gets all bookings from the database.
        /// </summary>
        /// <returns>List of all bookings</returns>
        public List <Booking> GetAllBookings()
        {
            IBookingServices Service = new BookingServicesClient();

            return(Service.GetAll());
        }