public ActionResult Add() { List <ProductCategory> categories = bll.GetAll(); ProductCategoryUpdateVModel vModel = new ProductCategoryUpdateVModel() { Categories = categories }; return(View(vModel)); }
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)); }