public ActionResult Index(Models.KnowAs theMovieDb, string searchText) { if (ModelState.IsValid) { CallAPI(searchText, 0); } return(View(theMovieDb)); }
public ActionResult Index(string peopleName, int?page) { if (page != null) { CallAPI(peopleName, Convert.ToInt32(page)); } Models.KnowAs theMovieDb = new Models.KnowAs(); theMovieDb.searchText = peopleName; return(View(theMovieDb)); }