Exemplo n.º 1
0
        public ActionResult Index(string searchTerm)
        {
            var viewModel = new IndexViewModel();

            viewModel.SearchTerm = searchTerm;
            if (!String.IsNullOrEmpty(searchTerm))
            {
                viewModel.Items = AmazonScraper.Search(searchTerm);
            }
            return(View(viewModel));
        }
 public List <AmazonResult> Search(string term)
 {
     return(AmazonScraper.Search(term));
 }