private static DomainObject DtoChildToBusinessChild(DTOVersionObject dto, Supplier supplier) { if (dto is AddressDTO) { return(AddressAdapter.DtoToAddress((AddressDTO)dto)); } else if (dto is SupplierProductDTO) { return(DtoToSupplierProduct((SupplierProductDTO)dto, supplier)); } return(null); }
public ChangeItem(DTOVersionObject obj, ChangeType type) { this.Object = obj; this.ChangeType = type; }