Пример #1
0
        static void Save(List <User> usersResults)
        {
            var jsonData = JsonConvert.SerializeObject(usersResults, Formatting.Indented);

            FileProvider.Replace(Path, jsonData);
        }
Пример #2
0
        private static void Save(List <Question> questions)
        {
            var serializedData = JsonConvert.SerializeObject(questions, Formatting.Indented);

            FileProvider.Replace(Path, serializedData);
        }