Пример #1
0
        public Quote GetQuote(string id)
        {
            RootQuotes root = dl.GetQuotesFromJsonFile();
            Quote      qt   = root.quotes.FirstOrDefault(r => r.Id == id);

            return(qt == null ? new Quote() : qt);
        }
Пример #2
0
        public List <Quote> GetQuotes()
        {
            RootQuotes root = dl.GetQuotesFromJsonFile();

            return(root.quotes);
        }