public ActionResult Index() { var startDate = DateTime.Now; var endDate = startDate.AddMonths(1); var model = new IndexPageViewModel() { ScheduleStart = startDate, ScheduleEnd = endDate, Runs = _runRepo.GetRuns(startDate, endDate), Trains = _trainRepo.GetAllTrains().ToDictionary(x => x.Id) }; return(View(model)); }