示例#1
0
        public async Task <ActionResult> Root()
        {
            ViewBag.SyncType = "Asynchronous";
            PageModel pm = new PageModel();

            var bundles = await BundleRequestHandler.GetAllRootTileBundle(RootProject);

            pm.Projects = bundles;
            return(View("Projects", pm));
        }
示例#2
0
        public async Task <ActionResult> Children(int id)
        {
            ViewBag.SyncType = "Asynchronous";
            PageModel pm = new PageModel();
            //var parentProject = Project.Find(p => p.Id == id);
            var parentProject = await ProjectService.GetProjectDetailsById(id);

            var bundles = await BundleRequestHandler.GetAllTileBundleForProject(id, new List <Project>());

            pm.Title    = parentProject.Name;
            pm.Id       = (int)parentProject.Id;
            pm.Projects = bundles;
            return(View("Projects", pm));
        }