/// <summary> /// 获取某[城市]的所有[市区]数据 /// </summary> public ActionResult GetSchoolList(int id) { if (!Request.IsAjaxRequest()) { return(Content("请不要非法方法,这是不道德的行为!")); } var lstExamPlace = ExamPlaceServices.GetExamPlaces().FindAll(m => m.ParentID == id).OrderBy(m => m.PlaceName); return(Json(lstExamPlace, JsonRequestBehavior.AllowGet)); }
public ActionResult GetProvinceList() { try { var lstExamPlace = ExamPlaceServices.GetExamPlaces().FindAll(m => m.PlaceType == "省份"); return(Json(lstExamPlace, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { throw; } }