Esempio n. 1
0
        public async Task <MotivationalQuote> GetRandomQuote()
        {
            var quotes = await motivationalQuoteRepository.GetAllItems();

            var random = new Random();

            return(quotes.ToArray()[random.Next(0, quotes.Count() - 1)]);
        }
Esempio n. 2
0
 public async Task <IEnumerable <User> > GetAllUsers()
 {
     return(await userRepository.GetAllItems());
 }