Skip to content

create new public method TransformSIIToADM that excepts List<ShippedItemInstance> type and ILogger #30

@dubnemo

Description

@dubnemo

Lines 67- 75 are moved to this new method.

public ApplicationDataModel.ADM.ApplicationDataModel TransformSIIToADM(List<ShippedItemInstance> ShippedItems, ILogger _logger)
{
                        ApplicationDataModel.ADM.ApplicationDataModel adm = new ApplicationDataModel.ADM.ApplicationDataModel();

                        //  replace fileName with the ShipFromParty.Id_shipmentId
                        adm.Catalog = new Catalog() { Description = fileName };

                        //Map the document data into the Catalog

                        Mapper mapper = new Mapper(adm.Catalog);
                        errors.AddRange(mapper.MapDocument(ShippedItems));

                        return adm;




 
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions