public ActionResult Configure() { var model = new ConfigurationModel(); model.DescriptionText = _checkMoneyOrderPaymentSettings.DescriptionText; model.AdditionalFee = _checkMoneyOrderPaymentSettings.AdditionalFee; model.AdditionalFeePercentage = _checkMoneyOrderPaymentSettings.AdditionalFeePercentage; return View("Nas.Plugin.Payments.CheckMoneyOrder.Views.PaymentCheckMoneyOrder.Configure", model); }
public ActionResult Configure(ConfigurationModel model) { if (!ModelState.IsValid) return Configure(); //save settings _checkMoneyOrderPaymentSettings.DescriptionText = model.DescriptionText; _checkMoneyOrderPaymentSettings.AdditionalFee = model.AdditionalFee; _checkMoneyOrderPaymentSettings.AdditionalFeePercentage = model.AdditionalFeePercentage; _settingService.SaveSetting(_checkMoneyOrderPaymentSettings); return View("Nas.Plugin.Payments.CheckMoneyOrder.Views.PaymentCheckMoneyOrder.Configure", model); }