Beispiel #1
0
        public List <Currency> GetAllCurrencies()
        {
            var allcurrencies = new List <Currency>();
            var context       = new CryptocurrencyContext();

            allcurrencies = context.Currencies.ToList();
            return(allcurrencies);
        }
Beispiel #2
0
        public List <CurrencyInfo> GetAllDataByCurrencyId(int id)
        {
            var currencyDataList = new List <CurrencyInfo>();
            var context          = new CryptocurrencyContext();

            currencyDataList = context.CurrencyInfos.Where(x => x.CurrencyId == id).ToList(); //todo using

            return(currencyDataList);
        }