Example #1
0
 public ActionResult Index(Models.TheMovieDbSeries theMovieDb, string searchText)
 {
     if (ModelState.IsValid)
     {
         CallAPISeries(searchText, 0);
     }
     return(View(theMovieDb));
 }
Example #2
0
        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));
        }