¡Hi! I need help for this problem. When I do a request the result give me is IEnumerable. I need to convert this IEnumerable to List. This code resolve my problem but i'm looking for another alternative for resolve my problem more elegant than this.
var folderCategoriesIds = FolderRepository.GetAll().Where(c => folderIds.Any(y => y == c.Id)).Select(x => x.Categories.Select(y => y.Id)).ToList();
List<int> list = new List<int>();
foreach (var item in folderCategoriesIds)
{
list.AddRange(item.ToList());
}