static async Task MainAsync(string[] args) { PriceCheckerDataEntities db = new PriceCheckerDataEntities(); Coles coles = new Coles(); foreach (GoodSearchKeyword kw in db.GoodSearchKeywords.ToList()) { string kwstring = kw.ColesKeyword; await coles.GetPricesAsync(kwstring.Trim()); } }