예제 #1
0
        public IActionResult ConfirmBooking(Guid bookingId, ConfirmBookingModel model)
        {
            ServiceOperationResult bookingResult;

            bookingResult = _bookingService.ConfirmOfflineBooking(bookingId, model.PaymentMethodId,
                                                                  model.Travelers.Select(t => new CreateBookingTravelerDto()
            {
                Email     = t.Email,
                FirstName = t.FirstName,
                LastName  = t.LastName,
                Id        = t.Id
            }).ToList());

            return(Ok());
        }