public ActionResult Edit(int id)
        {
            ViewBag.Categories = DataLists.Categories();
            ViewBag.Brands     = DataLists.ProductBrands();
            Product product = Product.GetById(id);
            ProductAddEditViewModel model = new ProductAddEditViewModel(product.Id, product.CategoryId, product.BrandId, product.Description);

            return(View(model));
        }
 public ActionResult Add()
 {
     ViewBag.Categories = DataLists.Categories();
     ViewBag.Brands     = DataLists.ProductBrands();
     return(View(new ProductAddEditViewModel()));
 }