Exemple #1
0
        public JsonResult SaveConfig(BaseParkinfo model)
        {
            try
            {
                if (string.IsNullOrWhiteSpace(model.PKID))
                {
                    throw new MyException("获取配置编号失败");
                }

                bool result = ParkingServices.UpdateParkSettleConfig(model);
                if (!result)
                {
                    throw new MyException("保存失败");
                }
                return(Json(MyResult.Success()));
            }
            catch (MyException ex)
            {
                return(Json(MyResult.Error(ex.Message)));
            }
            catch (Exception ex)
            {
                ExceptionsServices.AddExceptions(ex, "保存结算信息失败");
                return(Json(MyResult.Error("保存失败")));
            }
        }