public static QuizTeamViewModel MapQuizTeamDTOToModel(QuizTeamDTO dto) { if (dto == null) { throw new NullReferenceException("QuizTeamDTO is null"); } return(new QuizTeamViewModel { QuizId = dto.QuizId, TeamId = dto.TeamId }); }
public static QuizTeamTussentabel QuizTeamDTOToModel(QuizTeamDTO quizTeamDTO) { if (quizTeamDTO == null) { throw new NullReferenceException("quizTeamDTO is null"); } return(new QuizTeamTussentabel { QuizId = quizTeamDTO.QuizId, TeamId = quizTeamDTO.TeamId }); }