public IEnumerable <mFolder> UseNode(int userid) { var auths = user_repo.GetAuths(userid).Where(d => d.type == (int)eAuthType.UseSeat); var seats = seat_repo.GetMulti(d => auths.Any(a => a.key1 == d.id)); var folders = folder_repo.GetMulti(f => seats.Any(s => s.parentFolderId == f.id)); IList <mFolder> CusFolder = new List <mFolder>(); CusFolder.Add(new mFolder { Id = 1000, Name = "收藏夹", Description = "收藏夹", open = true, isParent = true, iconSkin = "cus_folder" }); return(CusFolder .Union(folders.Select(d => new mFolder(d))) .Union(seats.Select(d => new mFolder(new mSeat(d))))); }