Ejemplo n.º 1
0
        public ActionResult _CheckAlert(int id)
        {
            CheckAlert alert = (CheckAlert)alertManager.GetAlertById(id);

            ViewBag.Operator = alert.Operator.GetOperator();
            ViewBag.Property = alert.SubjectProperty.GetSubject();
            return(PartialView(alert));
        }
Ejemplo n.º 2
0
        // GET: GraphPartial
        public ActionResult _BarChart(int alertId)
        {
            Alert alert = alertManager.GetAlertById(alertId);

            alertManager.UserAlertViewed(User.Identity.GetUserId(), alertId);
            alert.Graph.BarValues = JsonConvert.DeserializeObject <Dictionary <string, double> >(alert.JsonValues);
            return(PartialView(alert));
        }