public LibraryItem BorrowItem(LibraryItem item, string name) { if (item.GetType() == typeof(Borrowable)) { ((Borrowable)item).BorrowItem(name); } return(item); }
public LibraryItem ArchiveItem(LibraryItem item, string archive) { if (item.GetType() == typeof(Archiveable)) { ((Archiveable)item).ArchiveItem(archive); } return(item); }