コード例 #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();
 }