Exemplo n.º 1
0
 public async Task <bool> Save()
 {
     return((await _context.SaveChangesAsync().ConfigureAwait(false)) >= 0);
     // if the SaveChanges returns negative int, then it fail to save
 }
Exemplo n.º 2
0
 public async Task <bool> Save()
 {
     return((await _context.SaveChangesAsync().ConfigureAwait(false)) >= 0);
 }