Exemple #1
0
 public ActionResult Index(Models.TheMovieDb theMovieDb, string searchText)
 {
     if (ModelState.IsValid)
     {
         CallAPI(searchText, 0);
     }
     return(View(theMovieDb));
 }
Exemple #2
0
 public ActionResult Index(Models.TheMovieDb theMovieDb, string searchText)
 {
     if (ModelState.IsValid)
     {
         GetPupular(1);
     }
     return(View(theMovieDb));
 }
Exemple #3
0
        // GET
        public ActionResult Index(string peopleName, int?page)
        {
            if (page != null)
            {
                CallAPI(peopleName, Convert.ToInt32(page));
            }

            Models.TheMovieDb theMovieDb = new Models.TheMovieDb();
            theMovieDb.searchText = peopleName;
            return(View(theMovieDb));
        }
Exemple #4
0
        public ActionResult Index(Models.TheMovieDb theMovieDb, string searchText)
        {
            var searchActorsResponse = new SearchActorsResponse();

            if (ModelState.IsValid)
            {
                searchActorsResponse = GetActors(searchText, 0);
            }


            return(View(searchActorsResponse));
        }