public IQueryable <TEntity> GetAll() { return(_dbContext.Set <TEntity>().AsNoTracking()); }
public int Count(Func <T, bool> predicate) { return(_context.Set <T>().Where(predicate).Count()); }