private Crypotcurrencies.WalletEntity GenerateWallet(Guid accountId, int idValue, string cryptoCode)
        {
            var wallet = new WalletEntity
            {
                AccountId     = accountId,
                CryptoId      = idValue,
                Balance       = 0M,
                FrozenBalance = 0M,
                Address       = null,
                CryptoCode    = cryptoCode
            };

            return(_walletFactory.Insert(wallet));
        }
Beispiel #2
0
        public override WalletEntity Insert(WalletEntity walletEntity)
        {
            var userWallet = new UserWallet
            {
                UserAccountId  = walletEntity.AccountId,
                CryptoId       = walletEntity.CryptoId,
                CryptoCode     = walletEntity.CryptoCode,
                Balance        = walletEntity.Balance,
                FrozenBalance  = walletEntity.FrozenBalance,
                Address        = walletEntity.Address,
                HomePageRank   = 0,
                PayRank        = 0,
                ShowInHomePage = true
            };

            walletEntity.Id = new UserWalletDAC().Insert(userWallet);
            return(walletEntity);
        }
Beispiel #3
0
        public override WalletEntity Insert(WalletEntity walletEntity)
        {
            var merchantWallet = new MerchantWallet
            {
                MerchantAccountId = walletEntity.AccountId,
                CryptoId          = walletEntity.CryptoId,
                Status            = MerchantWalletStatus.Displayed,
                Balance           = walletEntity.Balance,
                FrozenBalance     = walletEntity.FrozenBalance,
                Address           = walletEntity.Address,
                SupportReceipt    = false,
                CryptoCode        = walletEntity.CryptoCode
            };

            merchantWallet  = new MerchantWalletDAC().Insert(merchantWallet);
            walletEntity.Id = merchantWallet.Id;
            return(walletEntity);
        }
Beispiel #4
0
 public abstract WalletEntity Insert(WalletEntity model);