Exemplo n.º 1
0
        public ActionResult Add()
        {
            List <ProductCategory>      categories = bll.GetAll();
            ProductCategoryUpdateVModel vModel     = new ProductCategoryUpdateVModel()
            {
                Categories = categories
            };

            return(View(vModel));
        }
Exemplo n.º 2
0
        public ActionResult Update(int id)
        {
            var category = bll.GetOne(id);
            List <ProductCategory>      categories = bll.GetAll();
            ProductCategoryUpdateVModel vModel     = new ProductCategoryUpdateVModel()
            {
                Category = category, Categories = categories
            };

            return(View(vModel));
        }