public void Update(Author entity) { _db.Entry<Author>(entity).State = EntityState.Modified; _db.SaveChanges(); }
public void Create(Author entity) { _db.Authors.Add(entity); _db.SaveChanges(); }