public ActionResult Configure() { var model = new ConfigurationModel(); model.DescriptionText = _prepaymentPaymentSettings.DescriptionText; model.AdditionalFee = _prepaymentPaymentSettings.AdditionalFee; model.AdditionalFeePercentage = _prepaymentPaymentSettings.AdditionalFeePercentage; return View("SmartStore.Plugin.Payments.Prepayment.Views.PaymentPrepayment.Configure", model); }
public ActionResult Configure(ConfigurationModel model, FormCollection form) { if (!ModelState.IsValid) return Configure(); //save settings _prepaymentPaymentSettings.DescriptionText = model.DescriptionText; _prepaymentPaymentSettings.AdditionalFee = model.AdditionalFee; _prepaymentPaymentSettings.AdditionalFeePercentage = model.AdditionalFeePercentage; _settingService.SaveSetting(_prepaymentPaymentSettings); return View("SmartStore.Plugin.Payments.Prepayment.Views.PaymentPrepayment.Configure", model); }