public async Task <bool> Delete(TEntity entity) { try { _innerDB.Remove(entity); //_DbContext.Entry(entity).State = EntityState.Deleted; await _DbContext.SaveChangesAsync(); return(true); } catch (Exception e) { return(false); throw e; } }
public Task <int> Complete() { return(_DbContext.SaveChangesAsync()); }