Issue sending parent Id through recursive function - C#