Example #1
0
        // GET: DashboardView
        public ActionResult Index()
        {
            OrganizationalOverviewModel dashb = new OrganizationalOverviewModel()
            {
                ProjectCollectionCollection = CatalogNodeBrowsingHelper.GetProjectCollections(configurationServer.CatalogNode),
                ProjectCount = CatalogNodeBrowsingHelper.GetTeamProjects(configurationServer.CatalogNode, true).Count(),
                UserCount    = IdentityServiceManagementHelper.GetAllIdentityCount(configurationServer.GetService <IIdentityManagementService>())
            };

            return(View(dashb));
        }
        public ActionResult ProjectOverview(string id)
        {
            ProjectOverviewModel pom = new ProjectOverviewModel();

            if (!string.IsNullOrWhiteSpace(id))
            {
                TfsTeamProjectCollection tpc = configurationServer.GetTeamProjectCollection(new Guid(id));
                pom.Projects = CatalogNodeBrowsingHelper.GetTeamProjects(tpc.CatalogNode, false);
            }
            return(PartialView(pom));
        }
        // GET: DashboardView
        public ActionResult Index()
        {
            var projectCollections = CatalogNodeBrowsingHelper.GetProjectCollections(configurationServer.CatalogNode);

            OrganizationalOverviewModel dashb = new OrganizationalOverviewModel()
            {
                ProjectCollectionCollection = projectCollections,

                ProjectCount = CatalogNodeBrowsingHelper.GetTeamProjects(configurationServer.CatalogNode, true).Count()
            };

            return(View(dashb));
        }