private static async Task ListProducts() { var entries = await _store.GetAll <StorageProduct>(); Console.WriteLine(); foreach (var product in entries) { Console.WriteLine($"[{product.Category}] {product.Name} - {product.Description} ({product.Id})"); } Console.WriteLine(); }
private static async Task ListProducts() { var entries = await _store.GetAll <StorageProduct>(); Console.WriteLine(); foreach (var product in entries) { Console.WriteLine( $"[{product.Id}] {product.Name} - Available: {product.AvailableStock} Price{product.Price}"); } Console.WriteLine(); }