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); } }
public SearchController() { _searchService = new SearchService(); }