private IEnumerable <Dto.CryptoCurrency> GetCryptoCurrencies(Currency currency) { var cryptoCurrencyBusiness = new CryptoCurrencyBusiness(); if (currency == Currency.Unknown) //unknown = all { return(cryptoCurrencyBusiness.All().OrderBy(p => p.Currency)); } return(cryptoCurrencyBusiness.GetCryptoCurrenciesByCurrency(currency).OrderBy(p => p.Provider)); }
/// <summary> /// returns all crypto currencies /// </summary> /// <returns></returns> private IEnumerable <Dto.CryptoCurrency> GetCryptoCurrencies() { var crpytoCurrencyBusiness = new CryptoCurrencyBusiness(); return(crpytoCurrencyBusiness.All()); }
private IEnumerable <Dto.CryptoCurrency> GetCryptoCurrencies(Provider provider) { var crpytoCurrencyBusiness = new CryptoCurrencyBusiness(); return(crpytoCurrencyBusiness.GetCryptoCurrenciesByProvider(provider)); }