public ActionResult Index(string deelplatform)
        {
            IPlatformManager      platformManager = new PlatformManager();
            DeelplatformDashboard dpd             = platformManager.getDeelplatformDashboard(deelplatformURL);
            List <Item>           items           = new List <Item>();

            items.AddRange(dpd.Items);
            if (items.Count == 0)
            {
                items.AddRange(TestItems.GetTestItems(deelplatformURL));
            }
            return(View(items));
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            UnitOfWorkManager uowMgr           = new UnitOfWorkManager();
            IElementManager   elementManager   = new ElementManager(uowMgr);
            IDashboardManager dashboardManager = new DashboardManager(uowMgr);

            string    email     = System.Web.HttpContext.Current.User.Identity.GetUserName();
            Dashboard dashboard = dashboardManager.getDashboard(email, deelplatformURL);

            ViewBag.Suggestions = Elementen;
            List <Zone> zones = new List <Zone>();

            zones = dashboardManager.getZones(dashboard).ToList();
            Zone zone = new Zone()
            {
                Naam  = "TestZone",
                Id    = 500,
                Items = TestItems.GetTestItems(deelplatformURL)
            };

            zones.Add(zone);
            return(View(zones));
        }