Esempio n. 1
0
        public IActionResult Post([FromBody] Search query)
        {
            if (query == null)
            {
                return(BadRequest());
            }

            IDataSourceService         searchEngine = new DataSourceFactory();
            IReadOnlyCollection <Nerd> res          = searchEngine.GetSearchResults(query.Query);

            return(new OkObjectResult(res));
        }