コード例 #1
0
        public async Task <IEnumerable <ProductModel> > Search(string searchTerm)
        {
            var searchUrl = $"{_configuration.GetSection("BaseUrls")["SteamStore"]}/search/suggest?term={searchTerm}&f=games&cc=US&l=english";
            var response  = await _client.GetAsync(searchUrl);

            var html = await response.Content.ReadAsStringAsync();

            return(await _modelProvider.BuildAsync(html));
        }