public MaturityBasicReportData GetAssessmentInformation() { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); MaturityBasicReportData data = new MaturityBasicReportData(); data.information = reportsDataManager.GetInformation(); return(data); }
public MaturityBasicReportData GetDeficiencyList() { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); MaturityBasicReportData data = new MaturityBasicReportData(); data.DeficiencesList = reportsDataManager.getMaturityDeficiences("ACET"); data.information = reportsDataManager.GetInformation(); return(data); }
public MaturityBasicReportData GetCommentsMarked(string maturity) { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); MaturityBasicReportData data = new MaturityBasicReportData(); data.Comments = reportsDataManager.getCommentsList(maturity); data.MarkedForReviewList = reportsDataManager.getMarkedForReviewList(maturity); data.information = reportsDataManager.GetInformation(); return(data); }
public IHttpActionResult GetDeficiencyList([FromUri] string maturity) { try { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); MaturityBasicReportData data = new MaturityBasicReportData(); data.DeficiencesList = reportsDataManager.getMaturityDeficiences(maturity); data.information = reportsDataManager.GetInformation(); return(Ok(data)); } catch (Exception ex) { return(Ok()); } }