Пример #1
0
        public ActionResult ImportModel()
        {
            var model = new BlockModelViewModel
            {
                FileNames       = BlockModelService.GetFileNameList(),
                FormatFileNames = BlockModelService.GetFormatFileNameList(),
                Projects        = ProjectService.GetProjectListCurrent()
            };

            model.Stages = model.Projects.Any() ? ProjectService.GetStagesList(new Guid(model.Projects.First().Value)) : new SelectList(new SelectListItem[] { });
            return(View("ImportModel", model));
        }
Пример #2
0
        public ActionResult EditModel()
        {
            var model = new BlockModelViewModel
            {
                FileNames       = BlockModelService.GetFileNameList(),
                FormatFileNames = BlockModelService.GetFormatFileNameList(),
                Projects        = ProjectService.GetProjectList()
            };

            model.Stages = ProjectService.GetStagesList(new Guid(model.Projects.First().Value));
            return(View(model));
        }