public async Task Create(Book book) { RepositoryBook dalBook = ConvertToRepositoryBook(book); //Save an book object await _dbContext.SaveAsync <RepositoryBook>(dalBook); }
private Book ConvertToBook(RepositoryBook book) { return(new Book() { ISBN = book.ISBN, Title = book.Title, Description = book.Description }); }