public void AddResourceToNode(NodeResourceViewModel resourceViewModel)
        {
            resourceViewModel.Date = DateTime.Now;
            var resource = Mapper.Map<NodeResourceViewModel, NodeResource>(resourceViewModel);

            resource.Node = _db.Nodes.Get(resourceViewModel.NodeId);
            resource.AddBy = _db.Users.Get(resourceViewModel.AddBy);
            resource.Resource = resourceViewModel.ResourceRaw.StripHtml();

            _db.NodeResources.Create(resource);
            _db.Save();
        }
 public void AddResourceToNode(NodeResourceViewModel resourceViewModel)
 {
     _nodeResourceService.AddResourceToNode(resourceViewModel);
 }