コード例 #1
0
 public ActionResult Index()
 {
     var settings = new Settings();
     settings.PageSize = ModuleContext.Configuration.ModuleSettings.GetValueOrDefault("PageSize", 9);
     settings.AllowContactCreation = ModuleContext.Configuration.ModuleSettings.GetValueOrDefault("AllowContactCreation", false);
     return View(settings);
 }
コード例 #2
0
 public ActionResult Index(Settings settings)
 {
     ModuleContext.Configuration.ModuleSettings["PageSize"] = settings.PageSize.ToString();
     ModuleContext.Configuration.ModuleSettings["AllowContactCreation"] = settings.AllowContactCreation.ToString();
     return RedirectToDefaultRoute();
 }