示例#1
0
        public IActionResult Send()
        {
            var walletTransfer = new WalletTransfer();

            ViewBag.Address = new SelectList(_blockchainClient.wallet.WalletsAddress);

            return(PartialView("../Home/_Send", walletTransfer));
        }
示例#2
0
 public IActionResult Send(WalletTransfer walletTransfer)
 {
     _blockchainClient.wallet.TransferValue(walletTransfer.AddressFrom, walletTransfer.Value, walletTransfer.AddressTo);
     return(RedirectToAction("Miner"));
 }