Beispiel #1
0
        public JsonResult AddNewDevice(string val)
        {
            var     JSONObj = new JavaScriptSerializer().Deserialize <Dictionary <string, string> >(val);
            IDevice dev     = getDeviceFromJson(JSONObj);

            return(Json(adapter.AddNewDevice(dev)));
        }