public string AddQuestionToTest(DTO.TestQuestions DtoTestQuestion)
        {
            DAO.Test     _Test     = m_TestManagement.GetTest(DtoTestQuestion.TestId);
            DAO.Question _Question = m_QuestionManagement.GetQuestion(DtoTestQuestion.QuestionId);

            if (_Test != null && _Question != null)
            {
                m_TestManagement.AddQuestion(_Test, _Question);
            }

            return(string.Empty);
        }
        public string GetNextQuestion(DTO.InterviweeTest DtoInterviweeTest)
        {
            DTO.InterviweeTest _DtoInterviweeTest = DtoInterviweeTest;

            // Прохождение теста.
            DAO.InterviweeTests _DaoInterviweeTest = GetInterviweeTestByDtoId(ref _DtoInterviweeTest);

            // Текущий вопрос.
            DAO.Question _CurrentQuestion = null;
            if (DtoInterviweeTest.CurrentQuestion != null)
            {
                _CurrentQuestion = m_QuestionManagement.GetQuestion(DtoInterviweeTest.CurrentQuestion.Id);
            }

            // Вопрос.
            _DtoInterviweeTest = GetNextQuestion(_DtoInterviweeTest, _DaoInterviweeTest, _CurrentQuestion);

            string _Json = Utils.JsonSerialize(_DtoInterviweeTest);

            return(_Json);
        }