Exemple #1
0
 private SupplierDomain Aggreagate(SupplierEntity entity)
 {
     return(entity.ToDomain(
                _billingInfoRepository.FindById(new SimpleObjectIdentifier(entity.BillingInfoRef)),
                _contactInfoRepository.FindById(new SimpleObjectIdentifier(entity.ContactInfoRef))
                ));
 }
 public ContactInfoDto GetById(IObjectIdentifier <ulong> id) => ContactInfoDto.FromDomain(_repository.FindById(id));