Esempio n. 1
0
        public void RefreshUsers()
        {
            MenuUser menuUser = new MenuUser();
            Organize organize = new Organize();

            foreach (RoadFlow.Data.Model.MenuUser model in menuUser.GetAll(false))
            {
                model.Users = organize.GetAllUsersIdList(model.Organizes).ToArray().Join1 <Guid>(",");
                menuUser.Update(model);
            }
            this.ClearCache();
        }
Esempio n. 2
0
        public void RefreshUsers()
        {
            MenuUser menuUser = new MenuUser();
            Organize organize = new Organize();

            foreach (RoadFlow.Data.Model.MenuUser item in menuUser.GetAll(false))
            {
                item.Users = organize.GetAllUsersIdList(item.Organizes).ToArray().Join1();
                menuUser.Update(item);
            }
            ClearCache();
        }