public async Task <IActionResult> Index() { string[] builds = { "DefCore-2016.01-All", "Tempest-All-Tests" }; var model = new List <BuildsViewModel>(); foreach (var build in builds) { var testRuns = await _metricsService.GetRunsByBuildNameAsync(build); var lastRun = testRuns.OrderByDescending(r => r.RunAt).FirstOrDefault(); var buildVM = new BuildsViewModel { BuildName = build, LastTestRun = lastRun }; model.Add(buildVM); } return(View(model)); }