// GET: Movies public ActionResult Index() { //get all gifts var movies = new MoviesServices().GetAllMovies(); //pass them to the view return(View(movies)); }
public ActionResult Open(int id) { var movie = new MoviesServices().GetMovie(id); return(View(movie)); }
public MoviesController(MoviesServices movieService) { _movieService = movieService; }