This might be more of a c# question than Kentico related.
I'm getting a list of 2 different Event Types but would like them in one list and sort by EventDate which both share.
var EventsFree = EventDetailFreeProvider.GetEventDetailFrees() .Culture(CurrentDocument.DocumentCulture) .OrderBy("EventStart ASC") .Published() .ToList(); var EventsPaid = EventDetailPaidProvider.GetEventDetailPaids() .Culture(CurrentDocument.DocumentCulture) .OrderBy("EventStart ASC") .Published() .ToList();
Can I combine these 2 statements into 1?
I went a different route to get this to work.
Hi Brian,
You can use MultiDocumentQuery for this purpose. Please refer to the documentation page.
Please, sign in to be able to submit a new answer.