public ActionResult SaveGeneralSettings(ShippingByWeightListModel model) { //save settings _shippingByWeightSettings.LimitMethodsToCreated = model.LimitMethodsToCreated; _settingService.SaveSetting(_shippingByWeightSettings); return Json(new { Result = true }); }
public ActionResult Configure() { var model = new ShippingByWeightListModel(); //other settings model.LimitMethodsToCreated = _shippingByWeightSettings.LimitMethodsToCreated; return View("Nas.Plugin.Shipping.ByWeight.Views.ShippingByWeight.Configure", model); }