public Blockchain(BlockchainDto dto) { blocks = dto.Blocks.Select(s => (Block)s).ToList(); }
public IActionResult GetBlockchain() { var chainDto = new BlockchainDto(_blockchain); return(Ok(chainDto)); }