public ActionResult Create() { ProductManagerViewModel viewModel = new ProductManagerViewModel(); viewModel.Product = new Product(); viewModel.ProductCategories = productCategories.Collection(); return(View(viewModel)); }
// GET: ProductManager public ActionResult Index() { List <ProductCategory> productCategories = context.Collection().ToList(); return(View(productCategories)); }