Nethereum / Nethereum.Workbooks

Nethereum tutorials using workbooks
MIT License
18 stars 16 forks source link

register on smart contract with nethereum #50

Open alirezamoftakhar opened 5 years ago

alirezamoftakhar commented 5 years ago

Hi i want to send parameter with nethereum to save register on smart contract.

pragma solidity ^0.5.1;

contract registerCon {

    uint256 age;
    string firstName ;
    string lastName;

 function register1( uint256 _age ) public returns(bool)
    {
      age = _age ;
      return true;
    }
    function register2( string memory _firstName , string memory _lastName ) public returns(bool)
    {

     firstName = _firstName ;
     lastName = _lastName;
     return true;
    }
    function getrigester () public view returns(uint256 , string memory , string memory)
    {

        return ( age , firstName , lastName);

    }
}