public ActionResult Titles(string term, string maxResults) { NetflixProvider provider = new NetflixProvider(); var response = provider.SearchTitles(term, maxResults); NetflixParser parser = new NetflixParser(); var model = parser.ParseTitleSearch(response); return View(new MovieGridModel() { Movies = model, MaxResults = maxResults }); }
public JsonResult GetComps(string movieId, string maxResults) { NetflixProvider provider = new NetflixProvider(); var response = provider.GetSimilars(movieId, maxResults); NetflixParser parser = new NetflixParser(); var model = parser.ParseCompSearch(response); return Json(model); }
public JsonResult GetTitles(string term, string maxResults) { NetflixProvider provider = new NetflixProvider(); var response = provider.SearchTitles(term, maxResults); NetflixParser parser = new NetflixParser(); var model = parser.ParseTitleSearch(response); return Json(model); }
public ActionResult Comps(string movieId, string maxResults, string subjectTitle, string subjectReleaseYear) { NetflixProvider provider = new NetflixProvider(); var response = provider.GetSimilars(movieId, maxResults); NetflixParser parser = new NetflixParser(); var model = parser.ParseCompSearch(response); return View(new MovieGridModel() { Movies = model, MaxResults = maxResults, SubjectTitle = subjectTitle, SubjectReleaseYear = subjectReleaseYear }); }