Пример #1
0
        public static List <Question> GetQuestionsFromFile()
        {
            var data      = FileProvider.Load(FilePath);
            var questions = JsonConvert.DeserializeObject <List <Question> >(data);

            return(questions);
        }
Пример #2
0
        public List <UserResult> LoadUserResult()
        {
            var serializedResult = FileProvider.Load(PathToResultDiagnose);
            var deserilizedData  = JsonConvert.DeserializeObject <List <UserResult> >(serializedResult);

            return(deserilizedData);
        }