Beispiel #1
0
        static void Main(string[] args)
        {
            BookStore bookStore = new BookStore();

            bookStore.Import(json);

            Console.WriteLine($"Quantity of 'Ayn Rand - FountainHead' : {bookStore.Quantity("Ayn Rand - FountainHead")}");
            Console.WriteLine($"Buy 'J.K Rowling - Goblet Of fire' and 'Isaac Asimov - Foundation' : {bookStore.Buy("J.K Rowling - Goblet Of fire", "Isaac Asimov - Foundation")}");
            Console.ReadLine();
        }
Beispiel #2
0
        private static void Main(string[] args)
        {
            try
            {
                BookStore bookdata = new BookStore();
                Console.Write(bookdata.DisplayOrder());
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }

            ConsoleKey inputkey = Console.ReadKey(true).Key;
        }