public ActionResult Index() { var viewModel = new LinkListViewModel { Title = "What's in store?", Links = new Dictionary<string, string> { { Url.Action("ProjectNamesView", "Builds"), "Builds" } } }; return View("LinkListView", viewModel); }
public ActionResult ProjectNamesView() { var projectNames = buildService.GetProjects(); var viewModel = new LinkListViewModel { Title = "Projects on TFS", Links = projectNames.ToDictionary( projectName => Url.Action("BuildNamesView", new { projectName }), projectName => projectName) }; return View("LinkListView", viewModel); }