示例#1
0
        public ActionResult Add()
        {
            List <ProductCategory>      categories = bll.GetAll();
            ProductCategoryUpdateVModel vModel     = new ProductCategoryUpdateVModel()
            {
                Categories = categories
            };

            return(View(vModel));
        }
示例#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));
        }