public MaturityBasicReportData GetDeficiencyList() { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); MaturityBasicReportData data = new MaturityBasicReportData(); data.DeficiencesList = reportsDataManager.GetMaturityDeficiences(); 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(); data.information = reportsDataManager.GetInformation(); return(Ok(data)); } catch (Exception ex) { return(Ok()); } }