public void UpdateSimulationId(ISimulation simulation) { simulation.All <IParameter>().Each(p => p.Origin.SimulationId = simulation.Id); }