Exemple #1
0
 public async Task UpdateBookAsync(string bookId, Book book)
 {
     await _bookRepository.UpdateBookAsync(bookId, book);
 }
 public void AddBook(Book book)
 {
     book.BookNo = Guid.NewGuid().ToString();
     _Books.Add(book);
 }
Exemple #3
0
 public async Task <Book> CreateBookAsync(Book book)
 {
     return(await _bookRepository.CreateBookAsync(book));
 }