public QuestionResponse GetComponentOverridesList() { int assessmentId = Auth.AssessmentForUser(); ComponentQuestionManager manager = new ComponentQuestionManager(assessmentId); QuestionResponse resp = manager.GetOverrideListOnly(); return(resp); }
public QuestionResponse GetComponentQuestionsList([FromBody] string group) { int assessmentId = Auth.AssessmentForUser(); var manager = new ComponentQuestionManager(assessmentId); QuestionResponse resp = manager.GetResponse(); return(resp); }
public List <Answer_Components_Exploded_ForJSON> GetOverrideQuestions([FromUri] int question_id, int Component_Symbol_Id) { int assessmentId = Auth.AssessmentForUser(); ComponentQuestionManager manager = new ComponentQuestionManager(assessmentId); return(manager.GetOverrideQuestions(assessmentId, question_id, Component_Symbol_Id)); }
public void SaveComponentOverride([FromUri] String guid, Boolean ShouldSave) { int assessmentId = Auth.AssessmentForUser(); string applicationMode = GetApplicationMode(assessmentId); ComponentQuestionManager manager = new ComponentQuestionManager(assessmentId); Guid g = new Guid(guid); manager.HandleGuid(g, ShouldSave); }