Beispiel #1
0
        public string GetQuiz(int id)
        {
            QuizRepository  repository = new QuizRepository();
            QuizCompleteDTO quiz       = repository.GetQuizCompleteDTOById(id);

            string json;

            json = JsonConvert.SerializeObject(
                quiz,
                Formatting.Indented,
                new JsonSerializerSettings {
                ContractResolver = new CamelCasePropertyNamesContractResolver()
            });

            return(json);
        }