I have the following:
 foreach (var item in selected)
 {
    var categories = _repo.GetAllDCategories(item);
    var result = from cat in categories
                 select
                     new
                     {
                        label = cat.Name,
                        value = cat.Id
                     };
}
The method GetAllDCategories returns a IEnumerable<T>
How to add result to new IEnumerable object that will contain all the items from result for all the selected items in the loop?
 
     
     
    