Пример #1
0
        /// <summary>
        /// 获取所有省份信息
        /// </summary>
        /// <returns></returns>
        public async Task <ActionResult> GetAllProvince()
        {
            IEnumerable <SimpleRegion> result = null;

            try
            {
                var regionProxy = new RegionService();
                result = await regionProxy.GetAllProvince();
            }
            catch (Exception ex)
            {
                result = null;
                _logger.Error("GetAllProvince", ex);
            }
            return(Json(new { Status = result != null, Data = result }, JsonRequestBehavior.AllowGet));
        }