public void BorrowBack(string name) { ICanbeborrow object1 = (ICanbeborrow)Search(name); if (object1 != null) { object1.ToReturn(); } }
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); }