示例#1
0
        public ActionResult poicontrol(poiControlModel model)
        {
            string strModel = JsonConvert.SerializeObject(model);

            ControlHub control = new ControlHub();

            control.SendPoiControl(strModel);

            logger.Trace("POI操作控制:" + strModel);
            return(Json(new returnResultModel()
            {
                code = "1", message = "success"
            }, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public ActionResult mapcontrol(mapControlModel model)
        {
            string strModel = JsonConvert.SerializeObject(model);

            ControlHub control = new ControlHub();

            control.SendMapControl(strModel);

            logger.Trace("地图操作控制:" + strModel);


            //Response.write("<script language='javascript'>text('" + 这里写变量 + "')</script>");

            return(Json(new returnResultModel()
            {
                code = "1", message = "success"
            }, JsonRequestBehavior.AllowGet));
        }