public override List <BlockchainTransaction> GetDepositHistory(int offset       = -1, int limit = -1,
                                                                string[] orderBy = null)
 {
     using (var ethereumDepositRepo = SmartContractRepositoryFactory.GetEthereumDepositeTransactionRepository(DbConnection))
     {
         return(GetHistory <EthereumTransaction.EthereumDepositTransaction>(ethereumDepositRepo, offset, limit, orderBy));
     }
 }
 public override List <BlockchainTransaction> GetAllHistory(out int numberData, string userID, string currency,
                                                            int offset = -1,
                                                            int limit  = -1, string[] orderBy = null, string search = null, long day = -1)
 {
     using (var depositRepo = SmartContractRepositoryFactory.GetEthereumDepositeTransactionRepository(DbConnection))
     {
         using (var withdrawRepo = SmartContractRepositoryFactory.GetEthereumWithdrawTransactionRepository(DbConnection))
         {
             using (var inter = SmartContractRepositoryFactory.GetInternalTransactionRepository(DbConnection))
             {
                 return(GetAllHistory <EthereumTransaction.EthereumWithdrawTransaction, EthereumTransaction.EthereumDepositTransaction>(out numberData, userID,
                                                                                                                                        currency, withdrawRepo, depositRepo, inter.GetTableName(), offset, limit, orderBy, search));
             }
         }
     }
 }
 public ReturnObject FakeDepositTransaction(EthereumTransaction.EthereumDepositTransaction blockchainTransaction)
 {
     try
     {
         using (var repo = SmartContractRepositoryFactory.GetEthereumDepositeTransactionRepository(DbConnection))
         {
             blockchainTransaction.Status = Status.STATUS_COMPLETED;
             return(repo.Insert(blockchainTransaction));
         }
     }
     catch (Exception e)
     {
         return(new ReturnObject
         {
             Status = Status.STATUS_ERROR,
             Message = e.Message
         });
     }
 }