public ActionResult SelectShowing(String theaterID, String userName, String movieName) { TicketOrderViewModel ticketOrderViewModel = new TicketOrderViewModel(); ticketOrderViewModel.userName = userName; ticketOrderViewModel.showings = Showing.GetFutureShowings(movieName, theaterID); ticketOrderViewModel.theater = Theater.GetTheater(theaterID); ticketOrderViewModel.movieName = movieName; ticketOrderViewModel.theaterID = theaterID; return(View("~/Views/TicketOrder/SelectShowing.cshtml", ticketOrderViewModel)); }
public ActionResult OrderDetails(String username, String orderID) { TicketOrderAccountUserViewModel ticketOrderAccountUserViewModel = new TicketOrderAccountUserViewModel(); ticketOrderAccountUserViewModel.username = username; ticketOrderAccountUserViewModel.order = TicketOrder.Get(orderID); ticketOrderAccountUserViewModel.showing = Showing.GetShowing(ticketOrderAccountUserViewModel.order.ShowingID); ticketOrderAccountUserViewModel.theater = Theater.GetTheater(ticketOrderAccountUserViewModel.showing.TheaterID); ticketOrderAccountUserViewModel.movie = Movie.Get(ticketOrderAccountUserViewModel.showing.MovieName); return(View("~/Views/MyAccount/OrderDetails.cshtml", ticketOrderAccountUserViewModel)); }