private static async Task GetProductBasePrice() { var productService = new ProductPriceService(); using (var stoper = new Stoper()) { var productPrices = await productService.GetProductBasePrices(); foreach (var item in productPrices) { HappyConsole.WriteBlueLine($"{item.ProductId,2} - {item.Price,5} - {item.IsActive}"); } } }
private static void DisplayProduct(Product item) { HappyConsole.WriteBlueLine($"{item.ProductId,2} - {item.Price,5} - {item.IsActive}"); }