示例#1
0
        public ActionResult BookingContacts(
            Guid bookingId
            )
        {
            // fetch booking data
            var bookingContactContract =
                new BookingContactContract(
                    bookingId,
                    Logging.UserId(User.Identity, ViewBag)
                    );

            bookingContactContract.ContactMethodWay = bookingContactContract.BookingContract.BookingContactMethod.ContactMethodWay;
            bookingContactContract.Comment          = bookingContactContract.BookingContract.BookingContactMethod.Comment;

            return(View(MVCHelper.Resolve(Request, "", "Booking", "BookingContacts"),
                        bookingContactContract
                        ));
        }
示例#2
0
        public ActionResult BookingContacts(
            [Bind()] BookingContactContract bookingContactContract
            )
        {
            if (ModelState.IsValid)
            {
                new BookingServiceClient().UpdateBookingPage2(
                    bookingContactContract.BookingId,
                    bookingContactContract.ContactMethodWay,
                    bookingContactContract.Comment,
                    Logging.UserId(User.Identity, ViewBag)
                    );

                return(RedirectToAction(
                           "BookingAddress",
                           new { bookingId = bookingContactContract.BookingId }));
            }

            return(View(MVCHelper.Resolve(Request, "", "Booking", "BookingContacts"),
                        bookingContactContract
                        ));
        }