I have the following Linq statement:
var permissions = (from ru in RoleUserStore
join role in RoleStore on ru.RoleId equals role.Id
where ru.UserId == user.Id
select role.Permissions).ToList();
My result is a List<ICollection<Permission>>
. How do I do this correctly to have a flat List across all the Roles? I could not figure out how to do this.