コード例 #1
0
        public void getVillageByTownId(string townId)
        {
            if (string.IsNullOrEmpty(townId))
            {
                Response.Write("{\"success\":false,\"error\":\"参数错误!\"}");
            }
            List <VILLAGE> lst = RegionDal.getVillageByTownId(townId);

            Response.Write("{\"success\":true,\"data\":" + JsonHelper.ObjectToJson(lst) + "}");
        }