Example #1
0
        public QuestionShallowDTO(Question question)
        {
            Id      = question.Id;
            Content = question.Content;

            Category = new CategoryShallowDTO(question.Category);
        }
Example #2
0
        public QuestionDTO(Question question) : base(question)
        {
            Id      = question.Id;
            Content = question.Content;

            Category = new CategoryShallowDTO(question.Category);

            Answers = question.Answers.Select(a => new AnswerWrapper(a));
        }