Example #1
0
        public void viewBooks()
        {
            BookRepositary obj = new BookRepositary();

            obj.addbBookIntoList();
            foreach (KeyValuePair <int, Book> book in obj.BookList)
            {
                Console.WriteLine("Book ID : {0} \n Title : {1} \n Author : {2} \n Genere : {3} \n Price : {4} \n No Of Pages : {5} \n", book.Key, book.Value.Title, book.Value.Author, book.Value.Genere, book.Value.Price, book.Value.NoOfPages);
            }
        }
Example #2
0
        static void initializeBooksList()
        {
            BookRepositary obj = new BookRepositary();

            obj.addbBookIntoList();
        }