public void SaveModelPart <T>(T entityToSerialize, string filename) { var xelPart = _xmlSerializationService.SerializeModelPart(entityToSerialize); xelPart.Save(filename); }
public void Save() { var xml = _xmlSerializationService.SerializeModelPart(_calculationMethodRepository); xml.Save(_configuration.CalculationMethodRepositoryFile); }