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