Пример #1
0
        public Exam GetExam(int quizID)
        {
            var quiz = _questionDataAccess.GetQuiz(quizID, false, false);

            if (quiz == null)
            {
                return(null);
            }

            var user = _securityManager.GetOrCreateUserAccount();
            var now  = _timeManager.GetNow();

            return(_questionDataAccess.GetOrCreateExam(user, quiz, now));
        }