Beispiel #1
0
        public string NewModule(int menuId, int moduleType, int parentId)
        {
            string ret = "";

            try
            {
                var manager  = new ModulesManager();
                var moduleId = manager.AddModule(menuId, (ModuleType)moduleType, parentId);
                ret = GetModuleHtml(moduleId);
            }
            catch (Exception ex)
            {
                ret = ex.ToString();
            }

            return(ret);
        }