Пример #1
0
        public async Task<ActionResult> Statistics()
        {
            var db = new TriviaContext();
            var statisticsService = new StatisticsService(db);

            return this.View(await statisticsService.GenerateStatistics());
        }
Пример #2
0
 public StatisticsService(TriviaContext db)
 {
     this.db = db;
 }