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(); }
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(); }