public ActionResult BookingGeneral( Guid bookingId ) { var bookingGeneralContract = new BookingGeneralContract( bookingId, Logging.UserId(User.Identity, ViewBag) ); // make view bag for ref codes List <CrudeBookingSourceRefContract> refs = new BusinessLogicLayer.CrudeBookingSourceRefServiceClient().FetchAll(); ViewBag.BookingSourceRcd = new SelectList(refs, "BookingSourceRcd", "BookingSourceName", bookingGeneralContract.BookingSourceRcd ); return(View(MVCHelper.Resolve(Request, "", "Booking", "BookingGeneral"), bookingGeneralContract )); }
public ActionResult BookingGeneral( [Bind()] BookingGeneralContract bookingGeneralContract ) { if (ModelState.IsValid) { new BookingServiceClient().UpdateBookingPage1( bookingGeneralContract.BookingId, bookingGeneralContract.BookingSourceRcd, bookingGeneralContract.Locator, bookingGeneralContract.ReceivedFrom, bookingGeneralContract.Comment, Logging.UserId(User.Identity, ViewBag) ); return(RedirectToAction( "BookingContacts", new { bookingId = bookingGeneralContract.BookingId })); } return(View(MVCHelper.Resolve(Request, "", "Booking", "BookingGeneral"), bookingGeneralContract )); }