Esempio n. 1
0
        // GET: Movies
        public ActionResult Index()
        {
            //get all gifts
            var movies = new MoviesServices().GetAllMovies();

            //pass them to the view
            return(View(movies));
        }
Esempio n. 2
0
        public ActionResult Open(int id)
        {
            var movie = new MoviesServices().GetMovie(id);

            return(View(movie));
        }
Esempio n. 3
0
 public MoviesController(MoviesServices movieService)
 {
     _movieService = movieService;
 }