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