Example #1
0
 private static void ConvertEntityTo(IDataEntity dataEntity, string fileName, IFormatDescriptor format)
 {
     _converter.SaveDataFile(dataEntity, fileName, format);
 }
Example #2
0
        public void SaveDataFile(IDataEntity dataEntity, string fileName, IFormatDescriptor type)
        {
            var stream = _converters[type].ConvertToStream(dataEntity);

            StreamHelper.StreamToFile(fileName, stream);
        }