Esempio n. 1
0
        public async Task <Product> GetProductInfo()
        {
            Product product = new Product
            {
                Name        = await scraper.GetName(),
                Store       = _site,
                Url         = _url,
                PricePoints = new List <PricePoint>()
                {
                    new PricePoint {
                        Time = DateTime.Now, Price = await scraper.GetPrice()
                    }
                }
            };

            return(product);
        }