public IActionResult Started() { var runs = _runFinder.GetStarted(); var header = _listConverter.Convert(runs); var viewmodel = new RunListViewModel(header); return(View(viewmodel)); }
public IActionResult Index() { var viewmodel = new HomeIndexViewModel(); var runs = _runFinder .GetStarted() .OrderByDescending(x => x.Timings.StartedOn) .Take(5); viewmodel.LatestRuns = _listConverter.Convert(runs); viewmodel.RunCounts = _runCounter.Extend(); viewmodel.FastestSections = _bestTimings.Extend(); var pbs = _pbs.Extend(5); viewmodel.PersonalBests = _listConverter.Convert(pbs); return(View(viewmodel)); }