private Response MakeErrorResponse(ErrorCode errorCode, dynamic data) { var reponse = new Response { Error = XChainError.GetErrorByCode(errorCode), Data = data, }; return(reponse); }
private Response MakeResponse(string txid, dynamic data) { var reponse = new Response { Error = XChainError.GetErrorByCode(ErrorCode.Success), Txid = txid, Data = data, }; return(reponse); }