Exemple #1
0
        public JsonResult GetStatusData(string status)
        {
            var dataSet = new HighBarChartData();

            dataSet.label = status;
            dataSet.value = db.Tickets.Where(t => t.TicketStatus.Name == status).Count();
            return(Json(dataSet));
        }
Exemple #2
0
        public JsonResult GetPriorityData(string priority)
        {
            var dataSet = new HighBarChartData();

            dataSet.label = priority;
            dataSet.value = db.Tickets.Where(t => t.TicketPriority.Name == priority).Count();
            return(Json(dataSet));
        }