Пример #1
0
        public ActionResult Create()
        {
            ProductManagerViewModel viewModel = new ProductManagerViewModel();

            viewModel.Product           = new Product();
            viewModel.ProductCategories = productCategories.Collection();
            return(View(viewModel));
        }
Пример #2
0
        // GET: ProductManager
        public ActionResult Index()
        {
            List <ProductCategory> productCategories = context.Collection().ToList();

            return(View(productCategories));
        }