public async Task <IActionResult> IndexAsync()
        {
            var userId       = userManager.GetUserId(User);
            var projectsTask = projects.GetProjectsAsync(userId);
            var issuesTask   = issues.GetIssuesAsync(userId, true);
            await Task.WhenAll(projectsTask, issuesTask);

            return(View(new DashboardModel
            {
                Projects = projectsTask.Result,
                Issues = issuesTask.Result
            }));
        }
Esempio n. 2
0
 public async Task <IActionResult> IndexAsync()
 {
     return(View(await issues.GetIssuesAsync(withProject: true)));
 }