public ActionResult Configure() { var model = new ConfigurationModel(); model.Vmid = _chinabankPaymentSettings.Vmid; model.Key = _chinabankPaymentSettings.Key; model.AdditionalFee = _chinabankPaymentSettings.AdditionalFee; return View("~/Plugins/Payments.Chinabank/Views/PaymentChinabank/Configure.cshtml", model); }
public ActionResult Configure(ConfigurationModel model) { if (!ModelState.IsValid) return Configure(); //save settings _chinabankPaymentSettings.Vmid = model.Vmid; _chinabankPaymentSettings.Key = model.Key; _chinabankPaymentSettings.AdditionalFee = model.AdditionalFee; _settingService.SaveSetting(_chinabankPaymentSettings); return View("~/Plugins/Payments.Chinabank/Views/PaymentChinabank/Configure.cshtml", model); }