Example #1
0
 public static QuizRondeDTO QuizRondeModelToDTO(QuizRondeTussentabel quizRonde)
 {
     if (quizRonde == null)
     {
         throw new NullReferenceException("QuizRonde object is null");
     }
     return(new QuizRondeDTO
     {
         QuizId = quizRonde.QuizId,
         RondeId = quizRonde.RondeId
     });
 }
 public static AddRondeToQuizDTO AddRondeToQuizEntityToDTO(QuizRondeTussentabel entity)
 {
     if (entity == null)
     {
         throw new NullReferenceException("QuizRondeTussentabel object is null");
     }
     return(new AddRondeToQuizDTO
     {
         QuizId = entity.QuizId,
         RondeId = entity.RondeId
     });
 }