public IEnumerable <Customer> FindBy( Expression <Func <Customer, bool> > predicate) { using (var context = _contextCreator()) { _repository = new ConnectedRepository <Customer>(context); return(_repository.FindBy(predicate)); } }