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);
 }
 public ActionResult Index(Settings settings)
 {
     ModuleContext.Configuration.ModuleSettings["PageSize"] = settings.PageSize.ToString();
     ModuleContext.Configuration.ModuleSettings["AllowContactCreation"] = settings.AllowContactCreation.ToString();
     return RedirectToDefaultRoute();
 }