Ejemplo n.º 1
0
        public ActionResult ViewMovieForRent(int movieID, int movieInventory)
        {
            var ops = new DVDLibraryOperations();
            var movie = ops.GetMovieDetails(movieID);
            var movieRatings = ops.GetMovieRatingsByID(movieID);

            var viewMovieVM = new RentMovieLongViewModel(movieRatings, movie);
            viewMovieVM.UserID = (int)Session["User"];
            viewMovieVM.MovieInventory = movieInventory;

            return View(viewMovieVM);
        }
Ejemplo n.º 2
0
        public ActionResult ViewDVD(int MovieID)
        {
            var ops = new DVDLibraryOperations();
            var movie = ops.GetMovieDetails(MovieID);

            var dvdVM = new ViewMovieViewModel(movie);

            return View(dvdVM);
        }