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) )); }
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); }