public void SaveConfiguration() { _protocolProperties.ClearFormulationMapping(); _allFormulationMappingDTO.Each(formulationMappingDTO => { _formulationTask.Load(formulationMappingDTO.Formulation); _protocolProperties.AddFormulationMapping(_formulationMappingMapper.MapFrom(formulationMappingDTO, _simulation)); }); }