public List <MySiteMapNode> FindNodes(List <MySiteMapNode> coll, MySiteMapNode curr)
        {
            var fullcollection = context.MyNodesCollection.OrderBy(n => n.IdNode);

            if (curr.ParrentNodeId == 0)
            {
                coll.Add(curr);
            }
            else if (curr.ParrentNodeId != 0)
            {
                foreach (var item in fullcollection.ToList())
                {
                    if (curr.ParrentNodeId == item.IdNode)
                    {
                        coll.Add(curr);

                        FindNodes(coll, item);
                    }
                }
            }

            return(coll);
        }
 public SiteMapBuilder(string currentnode)
 {
     context          = new DataContext();
     this.currentnode = context.MyNodesCollection.First(n => n.NodeUrl.Equals(currentnode));
 }