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

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

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

            // get available services
            bookingServicesContract.SpecialServiceRequestList = new FinancialSearchService().SpecialServiceRequestList();

            return(bookingServicesContract);
        }