How to assign the result of the Linq Query to a dictionary...
public Dictionary<string, Privilege> GetAllPermissionsByGroupId(string groupid)
{
string[] Roles = new string[] { "e8b08a45-9cb5-4ac9-8c6c-9dfe4ac23966$Moderator" };
List<RolePrivilege> RoleList = new List<RolePrivilege>();
List<Privilege> PrivilegeList = new List<Privilege>();
Dictionary<string, RolePrivilege> Role = PrivilegeProxy.GetPrivilegesForRoles("744A2BE3-846E-4E4A-9796-DAF9C743E8FF", Roles);
RoleList = Role.Values.ToList();
Dictionary<string, Privilege> Privilege = PrivilegeProxy.GetPrivilegesbyModuleIds(new string[] { "Groups" });
PrivilegeList = Privilege.Values.ToList();
var identicalQuery = from roles in RoleList
join privileges in PrivilegeList on roles.PrivilegeName equals privileges.Name
select new { Roles = roles, Privileges = privileges };
Dictionary<string, Privilege> Result=new Dictionary<string,Privilege>();
Result=?
return Result;
}