public ActionResult MachineList() { List <Machine> machines = MachineProcessor.getMachineAll(sortBy); Threshold thresholds = ThresholdProcessor.getThresholds(); ViewBag.Machines = machines; ViewBag.Thresholds = thresholds; Response.AddHeader("Refresh", "60"); // Refresh whole web page every 60 seconds return(View()); }
public Threshold getThresholds() { var thresholds = ThresholdProcessor.getThresholds(); return(thresholds); }