예제 #1
0
        private static void SearchFilm()
        {
            var filmSearch = new FilmsSearch("wiedźmin");

            filmSearch.Download();

            var result = filmSearch.SearchRows;
        }
예제 #2
0
        public IActionResult SearchFilms(string title)
        {
            if (string.IsNullOrWhiteSpace(title))
            {
                return(new StatusCodeResult(400));
            }

            var filmSearch = new FilmsSearch(title);

            filmSearch.Download();

            var searchRows = filmSearch.SearchRows;

            return(new JsonResult(searchRows.Adapt <SearchRowViewModel[]>()));
        }