public void SaveConfiguration() { _observerSetProperties.ClearObserverSetMappings(); _allObserverSetMappingDTOs.Each(x => { _observerSetTask.Load(x.ObserverSet); _observerSetProperties.AddObserverSetMapping(x.ObserverSetMapping); }); _simulationBuildingBlockUpdater.UpdateMultipleUsedBuildingBlockInSimulationFromTemplate(_simulation, _allObserverSetMappingDTOs.Select(x => x.ObserverSet), PKSimBuildingBlockType.ObserverSet); }
public void SaveConfiguration() { _eventProperties.ClearEventMapping(); _allEventsMappingDTO.Each(eventMappingDTO => { _eventTask.Load(eventMappingDTO.Event); _eventProperties.AddEventMapping(_eventMappingMapper.MapFrom(eventMappingDTO, _simulation)); }); _simulationBuildingBlockUpdater.UpdateMultipleUsedBuildingBlockInSimulationFromTemplate(_simulation, _allEventsMappingDTO.Select(x => x.Event), PKSimBuildingBlockType.Event); }