Ejemplo n.º 1
0
        public JsonResult GetMonitoringReport()
        {
            IQaiService dataResultService = new QaiService();
            var         data1             = dataResultService.GetMonitoringReportDetails();

            Task.WaitAll(data1);
            var result = new { mr = data1.Result };

            return(ReturnJSON(result));
        }
Ejemplo n.º 2
0
        public JsonResult GetDetailsReport()
        {
            IQaiService dataResultService = new QaiService();
            var         data1             = dataResultService.GetMonitoringReportDetails();
            var         data2             = dataResultService.GetPercentageDataDetails();
            var         data3             = dataResultService.GetLastBatchJobRun();
            var         data4             = dataResultService.GetNextBatchJobRun();

            Task.WaitAll(data1, data2, data3, data4);

            var result = new { mr = data1.Result, pd = data2.Result, serverDate = DateTime.Now, lastRun = data3.Result, nextRun = data4.Result };

            return(ReturnJSON(result));
        }