Пример #1
0
        public void BorrowBack(string name)
        {
            ICanbeborrow object1 = (ICanbeborrow)Search(name);

            if (object1 != null)
            {
                object1.ToReturn();
            }
        }
Пример #2
0
        public void BorrowIt(string name)
        {
            ICanbeborrow object1 = (ICanbeborrow)Search(name);

            if (object1 != null)
            {
                object1.BorrowIt(DateTime.Now);
            }
            else
            {
                Console.WriteLine("There is no CD or any type of book has found");
            }
            //Object o = Search(name);
        }