/// <summary> /// εεΎθε /// </summary> /// <returns></returns> public IList <Bill_SysMenu> GetMenu() { MenuDal menu = new MenuDal(); IList <Bill_SysMenu> userList = menu.GetMenuByUser(users.UserCode); IList <Bill_SysMenu> roleList = menu.GetMenuByRole(users.UserGroup); foreach (Bill_SysMenu roleMenu in roleList) { var temp = from linqtemp in userList where linqtemp.MenuId == roleMenu.MenuId select linqtemp; if (temp.Count() < 1) { userList.Add(roleMenu); } } return(userList); }