AgGateway.ADAPT.ISOv4Plugin.ImportMappers.LogMappers.DocumentMapper.Map C# (CSharp) Method

Map() public method

public Map ( List tsks, string dataPath, AgGateway.ADAPT.ApplicationDataModel.ADM.ApplicationDataModel dataModel, Dictionary linkedIds ) : Documents
tsks List
dataPath string
dataModel AgGateway.ADAPT.ApplicationDataModel.ADM.ApplicationDataModel
linkedIds Dictionary
return AgGateway.ADAPT.ApplicationDataModel.ADM.Documents
        public Documents Map(List<TSK> tsks, string dataPath, ApplicationDataModel.ADM.ApplicationDataModel dataModel, Dictionary<string, List<UniqueId>> linkedIds)
        {
            var tasksWithLoggedData = tsks.Where(task => task.Items != null && task.Items.OfType<TLG>().Any()).ToList();
            _loggedDataMapper.Map(tasksWithLoggedData, dataPath, dataModel, linkedIds);

            var tasksWithoutLogData = tsks.Where(task => task.Items == null || !task.Items.OfType<TLG>().Any()).ToList();
            var workOrders = _workOrderMapper.Map(tasksWithoutLogData, dataModel);
            dataModel.Documents.WorkOrders = workOrders;

            return dataModel.Documents;
        }
DocumentMapper