Пример #1
0
        public static IEnumerable<Stock> SearchStock(DynamicNodeContext nodeContext)
        {
            var keywords = HttpContext.Current.Request.QueryString["keywords"];

            if (string.IsNullOrEmpty(keywords))
                return null;

            using (var service = new SearchService())
            {
                return service.Search(keywords);
            }
        }
Пример #2
0
 public SearchController()
 {
     _searchService = new SearchService();
 }