Concatenating Collection objects together


I would like to concatenate a collection of Products of ‘ProductType’ = ‘Product’ with a collection of Products of ‘ProductType’ = ‘Consumable’ together.

I have tried the standard Concat() method for IEnumerable objects, but that did not work - is there a standard method or way of doing this with the Avontus.Rental or Avontus.Core namespace classes?

Thanks so much for your help,


Just checking in on this one - update on my end is I was able to simply concatenate two Product collections together

(e.g. concatenatedProducts = productCollection1.Concat(productCollection2 works),

but I am running into issues doing the same thing with Movement Collections

(e.g. concatenatedMovements = movementCollection1.Concat(movementCollection2) does not work).

The error resulting is ‘System.ArgumentNullException: Value cannot be null. Parameter name: source’.

I am thinking this may have to do with the fact that ProductCollection inherits from EditableRootListBase, whereas MovementCollection inherits from BusinessListBase. Can anyone help me out with this issue?

I need to be able to get all Movements of type either PurchaseConsumable, PurchaseNew, or PurchaseForRent in one MovementCollection. If there is a better way to do this, that would also be a valid solution.

Thanks so much,