Ejemplo n.º 1
0
 public async Task UpdateAuthor(Author author)
 {
     context.Entry(author).State = EntityState.Modified;
     await context.SaveChangesAsync();
 }
Ejemplo n.º 2
0
 public async Task InsertAuthor(Author author)
 {
     author.Deleted = false;
     context.Authors.Add(author);
     await context.SaveChangesAsync();
 }