public QuestionShallowDTO(Question question) { Id = question.Id; Content = question.Content; Category = new CategoryShallowDTO(question.Category); }
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)); }