// GET: Checkout public ActionResult Index(int movieId) { var model = new CustomerMovieView() { Movie = _movieServiceGateway.Read(movieId), Customer = new Customer() }; return(View(model)); }
public ActionResult Index(int cId, int mId) { var myCookie = Request.Cookies["UserSettings"]; var currencyRate = Convert.ToDouble(myCookie["CurrencyRate"]); var movie = _mm.Read(mId); var price = movie.Price * currencyRate; price = System.Math.Round(price, 2); movie.Price = price; var model = new CustomerMovieView() { Customer = _cm.Read(cId), Movie = movie, SelectedCurency = myCookie["Currency"] }; return(View(model)); }