Example #1
0
 public Negotiator getRtView(string areaName)
 {
     selectedArea = this.BindTo(new area(areaName));
     Negotiator RtView = View["RtView", selectedArea];
     selectedArea = null;
     return RtView;
 }
Example #2
0
 public string getRtValues(string areaName)
 {
     selectedArea = new area(areaName);
     responseType = "application/json";
     string returnVal = new JavaScriptSerializer().Serialize(selectedArea.Sensors);
     selectedArea = null;
     return returnVal;
 }