//--------------------------------------
        //--------------------------------------
        public void NodeUpdate(ContentTransfer nodeXfer)
        {
            using (WebContentContext db = new WebContentContext())
            {
                Node nodeDb = null;

                try
                {
                    nodeDb = db.Nodes.Where(n => n.Id == nodeXfer.NodeId).Single();
                }
                catch (Exception ex)
                {
                    // Exception is thrown if the node does not exist.
                    // Replace this with a call to the logger.
                    Debug.Print(ex.Message);
                }

                if (nodeDb != null)
                {
                    nodeDb.Title   = nodeXfer.Title;
                    nodeDb.Summary = nodeXfer.Summary;
                    nodeDb.Content = nodeXfer.Content;
                    db.SaveChanges();
                }
            }
        }
        //--------------------------------------
        //--------------------------------------
        public ContentTransfer NodeCreate(ContentTransfer nodeNew)
        {
            Node nodeDb = ContentXferToDbNode(nodeNew);

            using (WebContentContext db = new WebContentContext())
            {
                db.Nodes.Add(nodeDb);
                db.SaveChanges();
            }

            return(NodeGetByPath(nodeNew.Path));
        }