public IActionResult Index() { ViewBag.EntityType = "SubCategory"; var subCatVm = new SubCategoryViewModel { SubCategories = subCatrepo.GetAll(), Categories = catRepo.GetAll(), AttributeGroups = attrGroupRepo.GetAll() }; return(View(subCatVm)); }
public IActionResult Index() { var attrGroupVm = new AttributeGroupViewModel { AttributeGroups = attrGroupRepo.GetAll(), SubCategories = subCatRepo.GetAll(), OneAttributes = oneAttrRepo.GetAll() }; return(View(attrGroupVm)); }
public IActionResult Index() { ViewBag.EntityType = "Product"; var prodVm = new ProductViewModel { Products = prodRepo.GetAll(), SubCategories = subCatRepo.GetAll(), AttributeGroups = attrGrRepo.GetAll() }; return(View(prodVm)); }