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)); }
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); }
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); }
public abstract WalletEntity Insert(WalletEntity model);