public Borrow(Reader who, BookDescription what)
 {
     Who  = who ?? throw new ArgumentNullException(nameof(who));
     What = what ?? throw new ArgumentNullException(nameof(what));
     Date = new DateTime();
     Date = DateTime.Today;
 }
Beispiel #2
0
 public ConstFiller(Book book, Borrow borrow, Reader reader, BookDescription bookDescription, int amount)
 {
     this.book            = book ?? throw new ArgumentNullException(nameof(book));
     this.borrow          = borrow ?? throw new ArgumentNullException(nameof(borrow));
     this.reader          = reader ?? throw new ArgumentNullException(nameof(reader));
     this.bookDescription = bookDescription ?? throw new ArgumentNullException(nameof(bookDescription));
     this.amount          = amount;
 }
Beispiel #3
0
 public void ChangeBookNumber(BookDescription book, int number)
 {
     Data.NumberOfBooks[book] += number;
 }
Beispiel #4
0
 //BookNumber
 public void AddBookNumber(BookDescription book, int number)
 {
     Data.NumberOfBooks.Add(book, number);
 }
Beispiel #5
0
 public void UpdateBookDescription(int id, BookDescription bookDescription) => Data.BookDescriptions[id] = bookDescription;
Beispiel #6
0
 //BookDescription aka OpisStanu
 public void AddBookDescription(BookDescription bookDescriptions) => Data.BookDescriptions.Add(bookDescriptions);
Beispiel #7
0
 public void DeleteBookNumber(BookDescription book)
 {
     Data.NumberOfBooks.Remove(book);
 }
Beispiel #8
0
 public void UpdateBookNumber(BookDescription book, int number)
 {
     Data.NumberOfBooks[book] = number;
 }
Beispiel #9
0
 public int GetBookNumber(BookDescription book)
 {
     return(Data.NumberOfBooks[book]);
 }
Beispiel #10
0
 public void AddBorow(BookDescription book, Reader reader)
 {
     Data.AddBorrow(new Borrow(reader, book));
 }
Beispiel #11
0
 public Book(BookDescription description)
 {
     Description = description;
 }
Beispiel #12
0
 public Borrow(Reader who, BookDescription what)
 {
     Who  = who ?? throw new ArgumentNullException(nameof(who));
     What = what ?? throw new ArgumentNullException(nameof(what));
 }