Example #1
0
        public ModuleSecurityEntity GetModuleSecurityByUrl(string requestUrl)
        {
            ModuleSecurityEntity moduleSecurityEntity = null;

            foreach (ModuleSecurityEntity module in this._securitySet)
            {
                if (module.TheModule.FormUrl.ToUpper() == requestUrl.ToUpper())
                {
                    moduleSecurityEntity = module;
                    break;
                }
            }
            return(moduleSecurityEntity);
        }
Example #2
0
        public ModuleSecurityEntity GetModuleSecurityByCode(string moduleCode)
        {
            ModuleSecurityEntity moduleSecurityEntity = null;

            foreach (ModuleSecurityEntity module in this._securitySet)
            {
                if (module.TheModule.ModuleCode.ToUpper() == moduleCode.ToUpper())
                {
                    moduleSecurityEntity = module;
                    break;
                }
            }
            return(moduleSecurityEntity);
        }