Esempio n. 1
0
 public SolveDTO(QuizDTO quizDTO)
 {
     this.quizID  = quizDTO.Id;
     this.Time    = 0;
     this.Date    = DateTime.Now.Date;
     this.Answers = new List <UserAnswerDTO>(quizDTO.Questions.Count);
     foreach (var question in quizDTO.Questions)
     {
         this.Answers.Add(new UserAnswerDTO(question));
     }
 }
Esempio n. 2
0
 public SolveDTO(QuizDTO quizDTO, int timeSpent) : this(quizDTO)
 {
     this.Time = timeSpent;
 }