예제 #1
0
        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 });
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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 });
        }