Esempio n. 1
0
 private static async Task LoadAllFromDatabase()
 {
     Award.Awards = Award.LoadAll();
     await new LogMessage(LogSeverity.Info, "Startup", "Loaded " + Award.Awards.Count + " Awards from the Database.").PrintToConsole();
     Quote.Quotes = Quote.LoadAll();
     await new LogMessage(LogSeverity.Info, "Startup", "Loaded " + Quote.Quotes.Count + " Quotes from the Database.").PrintToConsole();
     RequestQuote.RequestQuotes = RequestQuote.LoadAll();
     await new LogMessage(LogSeverity.Info, "Startup", "Loaded " + RequestQuote.RequestQuotes.Count + " RequestQuotes from the Database.").PrintToConsole();
 }