public ActionResult AssessmentService() { var assessments = assessmentRepository.GetAssessment(null); var assessmentSections = assessmentRepository.GetAssessmentSections(null); var assessmentQuestions = assessmentRepository.GetAssessmentQuestions(null); var assessmentLogicmapping = assessmentRepository.GetAssessmentQuestionsLogic(null); var assessmentCacheViewModel = new AssessmentCacheViewModel() { Assessments = JsonConvert.SerializeObject(assessments.DataItems), AssessmentSections = JsonConvert.SerializeObject(assessmentSections.DataItems), AssessmentQuestions = JsonConvert.SerializeObject(assessmentQuestions.DataItems), AssessmentLogicMapping = JsonConvert.SerializeObject(assessmentLogicmapping.DataItems) }; Response.ContentType = "text/javascript"; return(View(assessmentCacheViewModel)); }
public Response <AssessmentViewModel> GetAssessment(long?assessmentId) { return(assessmentRepository.GetAssessment(assessmentId)); }
public Assessment GetAssessment(int id) { var assessment = assessmentRepository.GetAssessment(id); return(assessment); }