예제 #1
0
        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);
        }
예제 #2
0
        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);
        }