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; }
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; }
public void ChangeBookNumber(BookDescription book, int number) { Data.NumberOfBooks[book] += number; }
//BookNumber public void AddBookNumber(BookDescription book, int number) { Data.NumberOfBooks.Add(book, number); }
public void UpdateBookDescription(int id, BookDescription bookDescription) => Data.BookDescriptions[id] = bookDescription;
//BookDescription aka OpisStanu public void AddBookDescription(BookDescription bookDescriptions) => Data.BookDescriptions.Add(bookDescriptions);
public void DeleteBookNumber(BookDescription book) { Data.NumberOfBooks.Remove(book); }
public void UpdateBookNumber(BookDescription book, int number) { Data.NumberOfBooks[book] = number; }
public int GetBookNumber(BookDescription book) { return(Data.NumberOfBooks[book]); }
public void AddBorow(BookDescription book, Reader reader) { Data.AddBorrow(new Borrow(reader, book)); }
public Book(BookDescription description) { Description = description; }
public Borrow(Reader who, BookDescription what) { Who = who ?? throw new ArgumentNullException(nameof(who)); What = what ?? throw new ArgumentNullException(nameof(what)); }