Beispiel #1
0
 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);
        }
Beispiel #3
0
 public void Create(BookDto book)
 {
     bookRepo.Create(book.ToBookEntity());
 }