public AccountBalance Convert(long amount)
        {
            try
            {
                if (amount <= 0)
                {
                    return(null);
                }

                var result = TransactionDAO.ExchangeCoin(AccountSession.AccountID, amount);
                if (result == null || result.Coin <= 0)
                {
                    return(null);
                }
                return(result);
            } catch (Exception ex)
            {
                NLogManager.PublishException(ex);
            }

            return(null);
        }