Ejemplo n.º 1
0
 public ActionResult SecondMenu(Guid?NodeID)
 {
     //ViewBag.NodeID = NodeID;
     Biz.Core.Models.DNHSiteMap objItem = Biz.Core.Services.DNHSiteMapManager.GetById(NodeID, CurrentUser.CompanyID);
     //DNHSiteMapCollection collection = DNHSiteMapManager.GetAll(CurrentUser.CompanyID);
     return(View(ViewFolder + "SiteMap.cshtml", objItem));
 }
Ejemplo n.º 2
0
        private void DigNode(DNHSiteMap node, string UserName, int CompanyID, int level)
        {
            DNHSiteMapCollection child = DNHSiteMapManager.GetAllByUser(UserName, CompanyID, node.NodeID);

            if (level > MaxValue)
            {
                //Max = lvl;

                myTree.AddRange(child);
            }
            else
            {
                foreach (DNHSiteMap b in child)
                {
                    DigNode(b, UserName, CompanyID, level + 1);
                }
            }
        }