示例#1
0
        public async Task <IActionResult> Index()
        {
            Stats.TotalTask = await taskContext.TotalTaskAsync();

            Stats.CompleteTask = await taskContext.CompletedTaskAsync();

            Stats.PendingTask = await taskContext.PendingTaskAsync();

            return(View(Stats));
        }