public IActionResult GetAll() { IList <Block> blocks = NodeService.GetAllBlocks(); return(Ok(blocks.Select(b => b.ToContract()).ToList())); }