Exemplo n.º 1
0
        public static void SetListModule(HttpSessionStateBase httpSessionState, long userId, bool isSupperUser)
        {
            if (!isSupperUser)
            {
                var userEntities = new BuyGroup365Entities();
                var listResult   = userEntities.GetAllModuleByUserId(userId).ToList();

                string listModule = listResult.Aggregate("", (current, re) => current + (re.WebMethod + ";"));
                listModule += "/User/Info;/User/ChangePassword;/User/UpdateInfo";
                SetSessionModule(listModule, httpSessionState);
            }
            else
            {
                SetSessionModule("IsSupperUser", httpSessionState);
            }
        }