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