public async Task CreateBookAsync(Book book)
 {
     await _booksRepository.CreateAsync(book.ToEntity());
 }
Exemple #2
0
 public async Task CreateAsync(BookDto bookDto)
 {
     var dbBook = bookDto.ToBookEntity();
     await booksRepository.CreateAsync(dbBook);
 }
Exemple #3
0
 ///<inheritdoc cref="ICreatable{TDto}.CreateAsync(TDto)"/>
 public async Task <BookDTO> CreateAsync(BookDTO dto)
 {
     return(await _repository.CreateAsync(dto));
 }