private WorkplanTaskPredecessorMapping CopyPredecessorMapping(ListplanTaskPredecessorMapping _wMapping, Dictionary <long, long> oldToNewId)
        {
            var newWorkplanTaskPredecessorMapping = new WorkplanTaskPredecessorMapping();

            newWorkplanTaskPredecessorMapping.WorkplanTaskId            = oldToNewId[_wMapping.ListplanTaskId];
            newWorkplanTaskPredecessorMapping.WorkplanPredecessorTaskId = oldToNewId[_wMapping.ListplanPredecessorTaskId];
            return(newWorkplanTaskPredecessorMapping);
        }
Пример #2
0
        public async Task <WorkplanTaskPredecessorMapping> CopyPredecessorMapping(ListplanTaskPredecessorMapping _lMapping, Dictionary <long, long> oldToNewId)
        {
            var newWorkplanTaskPredecessorMapping = new WorkplanTaskPredecessorMapping();

            newWorkplanTaskPredecessorMapping.WorkplanTaskId            = oldToNewId[_lMapping.ListplanTaskId];
            newWorkplanTaskPredecessorMapping.WorkplanPredecessorTaskId = oldToNewId[_lMapping.ListplanPredecessorTaskId];
            await _workplanTaskPredecessorMappingRepository.InsertAsync(newWorkplanTaskPredecessorMapping);

            return(newWorkplanTaskPredecessorMapping);
        }