Пример #1
0
        public static object Get(string reservationId)
        {
            int    id           = ExtractNumericPartOfId(reservationId);
            object IReservation = null;

            if (reservationId.Contains("booking"))
            {
                IReservation = new BookingMicroService();
            }
            else
            {
                IReservation = new PaymentMicroService();
            }

            return(IReservation);//IReservation.Get(id);
        }
Пример #2
0
        private static bool PayBooking(Booking booking)
        {
            BookingMicroService bookingMicroService = new BookingMicroService();

            return(bookingMicroService.PayBooking(booking));
        }