public ActionResult Index(Models.TheMovieDb theMovieDb, string searchText) { if (ModelState.IsValid) { CallAPI(searchText, 0); } return(View(theMovieDb)); }
public ActionResult Index(Models.TheMovieDb theMovieDb, string searchText) { if (ModelState.IsValid) { GetPupular(1); } return(View(theMovieDb)); }
// 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)); }
public ActionResult Index(Models.TheMovieDb theMovieDb, string searchText) { var searchActorsResponse = new SearchActorsResponse(); if (ModelState.IsValid) { searchActorsResponse = GetActors(searchText, 0); } return(View(searchActorsResponse)); }