|
case Collection c when !c.collectionType.ToLower().Contains("model"): |
If the collectionType is null in this case it silently throws and nothing in the collection loads, showing a successful pull.
should be
case Collection c when ! (c.collectionType?.ToLower().Contains("model") ?? false):