public virtual ActionResult ContentItemNavigation(string treeNodeId)
 {
     var viewModel = new ContentItemNavigationViewModel()
                         {
                             TreeNodeId = treeNodeId
                         };
     var treeNode = treeNodeRepository.GetAll().Where(a => a.Id == treeNodeId).FirstOrDefault();
     if (treeNode != null)
     {
         viewModel.ContentTreeNodeContentItems =
             treeNodeProviderContext.GetProviderByTypeName(treeNode.Type).ContentTreeNodeContentItems;
     }
     if ((viewModel.ContentTreeNodeContentItems == null) || (viewModel.ContentTreeNodeContentItems.Count() == 0)) return null;
     return View("ContentItemNavigation", viewModel);
 }
 public virtual ActionResult ContentItemNavigation(string treeNodeId)
 {
     var viewModel = new ContentItemNavigationViewModel()
                         {
                             TreeNodeId = treeNodeId
                         };
     var treeNode = treeNodeRepository.GetAll().Where(a => a.TreeNodeId == treeNodeId).FirstOrDefault();
     if (treeNode != null)
     {
         var provider = contentTreeNodeProviderContext.GetProviderForTreeNode(treeNode);
         provider.Controller = treeNode.ControllerName;
         viewModel.ContentTreeNodeContentItems = provider.Actions;
     }
     if ((viewModel.ContentTreeNodeContentItems == null) || (viewModel.ContentTreeNodeContentItems.Count() == 0)) return null;
     return View("ContentItemNavigation", viewModel);
 }