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