Example #1
0
        // countyId 区县id
        public void getTownByCountyId(string countyId)
        {
            if (string.IsNullOrEmpty(countyId))
            {
                Response.Write("{\"success\":false,\"error\":\"参数错误!\"}");
            }
            List <TOWN> lst = RegionDal.getTownByCountyId(countyId);

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