Ejemplo n.º 1
0
        public IActionResult Search(SearchViewModel query)
        {
            // Get results from HTTP source
            List <Result> HTTPResults = logic.GetResultsHTTP(query);

            // Get results from SQL Source
            List <Result> SQLResults = logic.GetResultsSQL(query);

            // Return results to View
            SearchViewModel searchViewModel = new SearchViewModel()
            {
                Title = query.Title, HTTPResults = HTTPResults, SQLResults = SQLResults
            };

            return(View(searchViewModel));
        }