public async Task UpdateAuthor(Author author) { dbContext.Entry(author).State = EntityState.Modified; await dbContext.SaveChangesAsync(); }
public async Task InsertAuthor(Author author) { dbContext.Authors.Add(author); await dbContext.SaveChangesAsync(); }