//Exchange rate public ExchangeRate GetExchangeRate() { var exchangeRateList = _commonDataAccess.GetExchangeRate(); if (exchangeRateList != null) { if (exchangeRateList.Count != 0) { return((ExchangeRate)exchangeRateList[0]); } } return(null); }