public async Task <Author> Add(Author entity) { _context.Authors.Add(entity); await _context.SaveChangesAsync(); return(entity); }
public async Task <Publisher> Add(Publisher entity) { _context.Publishers.Add(entity); await _context.SaveChangesAsync(); return(entity); }
public async Task <Review> Add(Review entity) { _bookstoreDbContext.Add(entity); await _bookstoreDbContext.SaveChangesAsync(); return(entity); }
public async Task Add(Book book) { await _bookstoreDbContext.Books.AddAsync(book); await _bookstoreDbContext.SaveChangesAsync(); }