Beispiel #1
0
        private UserWallet CreateWallet(Guid userAccountId, int cryptoId, decimal amount)
        {
            UserWallet invitorWallet = new UserWallet
            {
                UserAccountId  = userAccountId,
                CryptoId       = cryptoId,
                Balance        = amount,
                FrozenBalance  = 0,
                Address        = null,
                Tag            = null,
                HomePageRank   = 0,
                PayRank        = 0,
                ShowInHomePage = true
            };

            invitorWallet.Id = uwDAC.Insert(invitorWallet);

            return(invitorWallet);
        }