public void CompleteBorrowingEvent(BorrowingEvent borrowing)
 {
     borrowing.Completed = true;
 }
 public void AddReturnEvent(int copyId, DateTimeOffset eventDate, int readerId, BorrowingEvent borrowing)
 {
     _data.Events.Add(new ReturnEvent(_data.Copies[copyId], eventDate, _data.Readers.Find(x => x.Id == readerId), borrowing));
 }
 public ReturnEvent(Copy copy, DateTimeOffset eventDate, Reader reader, BorrowingEvent borrowing) : base(copy, eventDate)
 {
     this.Reader    = reader;
     this.Borrowing = borrowing;
 }