public JsonResult GetSelectProvincesByCityId(int cityId) { try { BaseCity city = CityServices.QueryCitysByCityId(cityId); if (city != null) { return(Json(MyResult.Success(string.Empty, city.ProvinceID.ToString()))); } return(Json(MyResult.Error("所选择城市不存在", string.Empty))); } catch (Exception ex) { ExceptionsServices.AddExceptions(ex, "根据城市编号获取城市信息失败"); return(Json(MyResult.Error("获取城市信息失败", string.Empty))); } }