public ActionResult _CheckAlert(int id) { CheckAlert alert = (CheckAlert)alertManager.GetAlertById(id); ViewBag.Operator = alert.Operator.GetOperator(); ViewBag.Property = alert.SubjectProperty.GetSubject(); return(PartialView(alert)); }
// 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)); }