public async Task CreateAsync(BookDto bookDto) { var dbBook = bookDto.ToBookEntity(); await booksRepository.CreateAsync(dbBook); }
public void Create(BookDto dtoBook) { var dbBook = dtoBook.ToBookEntity(); bookRepo.Add(dbBook); }
public void Create(BookDto book) { bookRepo.Create(book.ToBookEntity()); }