public ActionResult Index()
        {
            HomeViewModel model = new HomeViewModel();

            model.PopularMovies  = _movieApi.GetPopularMovies();
            model.TopRatedMovies = _movieApi.GetTopRatedMovies();
            model.UpcomingMovies = _movieApi.GetUpComingMovies();

            return(View(model));
        }
        // api/Movie/GetLatestMovies/{page}
        public MoviesDTO GetTopRatedMovies(int?page = 1)
        {
            var movies = _movieApi.GetTopRatedMovies(page);

            return(movies);
        }
        public ActionResult TopRated(int?page = 1)
        {
            var toprated = _movieApi.GetTopRatedMovies(page.Value);

            return(View(toprated));
        }