示例#1
0
        private void ConvertAndSaveConvertedSunCrossword(SunCrosswordJson sunCrossword)
        {
            var convertedCrossword = SunCrosswordConverter.Convert(sunCrossword);

            File.WriteAllText(convertedCrosswordFolderPath + convertedCrossword.id + ".json", JsonConvert.SerializeObject(convertedCrossword));
        }
示例#2
0
 private List <CrosswordModelJson> ConvertSunCrosswords(IEnumerable <SunCrosswordJson> sunCrosswords)
 {
     return(sunCrosswords.Select(sc => SunCrosswordConverter.Convert(sc)).ToList());
 }