Exemple #1
0
        public BillingInfoDomain Save(BillingInfoDomain domain)
        {
            var entity  = BillingInfoEntity.FromDomain(domain);
            var command = new BillingInfoSaveCommand(_dataSource, entity);

            entity = command.Execute();

            return(Aggreagate(entity));
        }
Exemple #2
0
 private BillingInfoDomain Aggreagate(BillingInfoEntity entity)
 {
     return(entity.ToDomain(_addressRepository.FindById(new SimpleObjectIdentifier(entity.BillingAddressRef))));
 }