public async Task <Customer> FindByIdAsync(int entityId) { using (var context = _contextCreator()) { _repository = new ConnectedRepository <Customer>(context); return(await _repository.FindByIdAsync(entityId)); } }
public async Task <Customer> FindByIdAsync(int entityId) { using (var context = _contextCreator()) { _repository = new ConnectedRepository <Customer>(context); return(await _repository.FindByIdAsync(entityId)); } }