Beispiel #1
0
        public decimal GetExchangeRate()
        {
            int                      total;
            decimal                  amount = decimal.MinValue;
            ExchangeRateBLL          pcBll  = new ExchangeRateBLL();
            IList <PNK_ExchangeRate> lst    = pcBll.GetList(1, string.Empty, string.Empty, string.Empty, 1, 1, out total);

            if (total > 0)
            {
                amount = lst[0].ExchangeRateDesc.Amount;
            }
            return(amount);
        }
Beispiel #2
0
        public decimal GetExchangeRate()
        {
            int     total;
            decimal amount = decimal.MinValue;

            try
            {
                ExchangeRateBLL          pcBll = new ExchangeRateBLL();
                IList <PNK_ExchangeRate> lst   = pcBll.GetList(1, string.Empty, string.Empty, string.Empty, 1, 1, out total);
                if (total > 0)
                {
                    amount = lst[0].ExchangeRateDesc.Amount;
                }
            }
            catch (Exception ex)
            {
                string msg = ex.Message;
            }
            return(amount);
        }