コード例 #1
0
        public IActionResult Index()
        {
            ViewBag.EntityType = "SubCategory";

            var subCatVm = new SubCategoryViewModel
            {
                SubCategories   = subCatrepo.GetAll(),
                Categories      = catRepo.GetAll(),
                AttributeGroups = attrGroupRepo.GetAll()
            };

            return(View(subCatVm));
        }
コード例 #2
0
        public IActionResult Index()
        {
            var attrGroupVm = new AttributeGroupViewModel
            {
                AttributeGroups = attrGroupRepo.GetAll(),
                SubCategories   = subCatRepo.GetAll(),
                OneAttributes   = oneAttrRepo.GetAll()
            };

            return(View(attrGroupVm));
        }
コード例 #3
0
        public IActionResult Index()
        {
            ViewBag.EntityType = "Product";

            var prodVm = new ProductViewModel
            {
                Products        = prodRepo.GetAll(),
                SubCategories   = subCatRepo.GetAll(),
                AttributeGroups = attrGrRepo.GetAll()
            };

            return(View(prodVm));
        }