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));
 }
예제 #3
0
 public ReturnEvent(Copy copy, DateTimeOffset eventDate, Reader reader, BorrowingEvent borrowing) : base(copy, eventDate)
 {
     this.Reader    = reader;
     this.Borrowing = borrowing;
 }