Exemple #1
0
        public ActionResult Index(string siteName, ModuleInfo_Metadata moduleInfo)
        {
            JsonResultData resultEntry = new JsonResultData(ModelState);
            try
            {
                if (ModelState.IsValid)
                {
                    ModuleInfo.SaveModuleSetting(ModuleName, siteName, moduleInfo.Settings);
                    resultEntry.AddMessage("Module setting has been changed.".Localize());
                }

            }
            catch (Exception e)
            {
                resultEntry.AddException(e);
            }
            return Json(resultEntry);
        }
Exemple #2
0
        public ActionResult Index(string siteName)
        {
            ModuleInfo_Metadata moduleInfo = new ModuleInfo_Metadata(ModuleName, siteName);

            return View(moduleInfo);
        }