Exemple #1
0
 public async Task <bool> DeleteAsync(T entity)
 {
     belatrixDbContext.Remove(entity);
     return(await belatrixDbContext.SaveChangesAsync() > 0);
 }
Exemple #2
0
 public async Task <bool> Delete(T entity)
 {
     _db.Remove(entity);
     return(await _db.SaveChangesAsync() > 0);
 }