public ActionResult Create() { ProductCategoryViewModel viewModel = new ProductCategoryViewModel(); viewModel.product = new Product(); viewModel.productCategory = categoryRepository.Collection(); return(View(viewModel)); }
// GET: CategoryManager public ActionResult Index() { List <ProductCategory> products = context.Collection().ToList(); return(View(products)); }