Fixing Issues with SelectMany mappings wihen a linq function is involved