Example #1
0
        public LineChart Bottom5()
        {
            TokenManager tm            = new TokenManager();
            var          aggregationID = tm.PayloadInt("aggreg");

            if (aggregationID == null)
            {
                return(null);
            }

            var response = new LineChart();

            response.reportType = "Top 5 Areas of Concern (Bottom 5)";

            using (CSET_Context db = new CSET_Context())
            {
                TrendDataProcessor trendData = new TrendDataProcessor();
                trendData.Process(db, aggregationID ?? 0, response, "BOTTOM");
            }

            return(response);
        }
Example #2
0
        public LineChart Top5()
        {
            TokenManager tm            = new TokenManager();
            var          aggregationID = tm.PayloadInt("aggreg");

            if (aggregationID == null)
            {
                return(null);
            }

            var response = new LineChart();

            response.reportType = "Top 5 Most Improved Areas";

            using (CSET_Context db = new CSET_Context())
            {
                TrendDataProcessor trendData = new TrendDataProcessor();
                trendData.Process(db, aggregationID ?? 0, response, "TOP");
            }

            return(response);
        }