Beispiel #1
0
        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);
        }
Beispiel #2
0
 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());
     }
 }