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); }
public async Task <Book> CreateBookAsync(Book book) { return(await _bookRepository.CreateBookAsync(book)); }