/// <summary> /// Returns questions/answers for current selected assessment /// </summary> /// <returns></returns> private List <AnalyticsQuestionAnswer> GetQuestionsAnswers() { int assessmentId = Auth.AssessmentForUser(); var questionsController = new QuestionsController(); string applicationMode = questionsController.GetApplicationMode(assessmentId); QuestionsManager qm = new QuestionsManager(assessmentId); if (applicationMode.ToLower().StartsWith("questions")) { QuestionResponse resp = qm.GetQuestionListWithSet("*"); return(qm.GetAnalyticQuestionAnswers(resp).OrderBy(x => x.QuestionId).ToList()); } else { RequirementsManager rm = new RequirementsManager(assessmentId); QuestionResponse resp = rm.GetRequirementsList(); return(qm.GetAnalyticQuestionAnswers(resp).OrderBy(x => x.QuestionId).ToList()); } }