Пример #1
0
        public ActionResult SaveSetting(ChemCloud.Model.ConfigPayPalAPI model)
        {
            if (!base.ModelState.IsValid)
            {
                Result result = new Result()
                {
                    success = false,
                    msg     = "数据验证错误!"
                };
                return(Json(result));
            }
            Result result1 = new Result();

            ServiceHelper.Create <IConfigPayPalAPIService>().UpdateConfigPayPalAPIInfo(model);
            return(Json(new { Successful = true }));
        }
Пример #2
0
 // GET: Admin/ConfigPPAPI
 public ActionResult Index()
 {
     ChemCloud.Model.ConfigPayPalAPI model = new ChemCloud.Model.ConfigPayPalAPI();
     model = ServiceHelper.Create <IConfigPayPalAPIService>().GetConfigPayPalAPIInfo(1);
     return(View(model));
 }