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)); }
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)); }