Example #1
0
        public static PublishHouse FillHouse()
        {
            PublishHouse house = new PublishHouse();

            Console.WriteLine("Please enter publish house name:");
            house.PublishHouseName = Console.ReadLine();
            house.Address          = Address.FillAddress();
            return(house);
        }
Example #2
0
        public static Book AddBook()
        {
            Book book = new Book();

            book.Author = UserName.FillName();
            Console.WriteLine("Please enter book's title:");
            book.Title = Console.ReadLine();
            Console.WriteLine("Please enter book's value:");
            book.Value = Int16.Parse(Console.ReadLine());
            Console.WriteLine("Please enter book's edition:");
            book.Edition         = Int16.Parse(Console.ReadLine());
            book.PublishingHouse = PublishHouse.FillHouse();
            return(book);
        }