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