Esempio n. 1
0
        public IActionResult AddNode([FromBody] NodeReuqest arg)
        {
            var oldNode  = _myChain.Nodes;
            var newNodes = _myChain.AddNode(arg.NewNode);

            return(Ok(new
            {
                addNodes = newNodes,
                oldNodes = oldNode
            }));
        }