Esempio n. 1
0
        public IEnumerable <CurrencyRate> GetMainCurrencies()
        {
            List <CurrencyRate> result = new List <CurrencyRate>();

            foreach (CurrencyInformation c in CurrencyInformation.ImportantCurrencies)
            {
                result.Add(CurrencyDalInstance.getRate(c.Initials, DateTime.Now));
            }

            return(result);
        }
Esempio n. 2
0
 public MonthlyAverage getMonthlyAverage(string currency, int year, string month)
 {
     return(CurrencyDalInstance.getMonthlyAverage(year, month, currency));
 }
Esempio n. 3
0
 public void addRates(IEnumerable <CurrencyRate> rates)
 {
     CurrencyDalInstance.addRates(rates);
 }
Esempio n. 4
0
 public void updateRates(IEnumerable <CurrencyRate> rates)
 {
     CurrencyDalInstance.updateRates(rates);
 }
Esempio n. 5
0
 public IEnumerable <CurrencyRate> getRatesForDateRange(string currencyName, DateTime start, DateTime end)
 {
     return(CurrencyDalInstance.getRatesForDateRange(currencyName, start, end));
 }
Esempio n. 6
0
 public IEnumerable <CurrencyRate> getMultipleRatesForDateRange(IEnumerable <string> currencyNames, DateTime start, DateTime end)
 {
     return(CurrencyDalInstance.getMultipleRatesForDateRange(currencyNames, start, end));
 }
Esempio n. 7
0
 public IEnumerable <CurrencyRate> getMultipleRates(IEnumerable <string> currencyNames, DateTime date)
 {
     return(CurrencyDalInstance.getMultipleRates(currencyNames, date));
 }
Esempio n. 8
0
 public IEnumerable <CurrencyRate> getRatesForDate(DateTime date)
 {
     return(CurrencyDalInstance.getRatesForDate(date));
 }
Esempio n. 9
0
 public CurrencyRate getRate(string currencyName, DateTime date)
 {
     return(CurrencyDalInstance.getRate(currencyName, date));
 }
Esempio n. 10
0
 public void addRate(CurrencyRate currencyRate)
 {
     CurrencyDalInstance.addRate(currencyRate);
 }
Esempio n. 11
0
 public void Dispose()
 {
     CurrencyDalInstance.Dispose();
 }