Exemplo n.º 1
0
        public ActionResult BookingServiceFerry(
            [Bind()] BookingServiceFerryContract bookingServicesContract
            )
        {
            if (ModelState.IsValid)
            {
                return(RedirectToAction(
                           "BookingServiceFerry",
                           new { bookingId = bookingServicesContract.BookingId }));
            }

            return(View(
                       MVCHelper.Resolve(Request, "", "Booking", "BookingServiceFerry"),
                       BookingServiceFerryNew(bookingServicesContract.BookingId)
                       ));
        }
Exemplo n.º 2
0
        BookingServiceFerryContract BookingServiceFerryNew(
            Guid bookingId
            )
        {
            // fetch booking data
            var bookingServicesContract =
                new BookingServiceFerryContract(
                    bookingId,
                    Logging.UserId(User.Identity, ViewBag)
                    );

            // get service attached to booking
            bookingServicesContract.Services =
                new FinancialSearchService().FinancialServiceDetailsForBooking(
                    bookingId);

            // get available hotels
            bookingServicesContract.ServiceFerryList =
                new FinancialSearchService().ServiceFerryList();

            return(bookingServicesContract);
        }