public ActionResult Edit([Bind(Include = "ProductID,Name,ProductNumber,ListPrice,Size,Weight")] Product product)
 {
     ProductViewModel prod = new ProductViewModel();
     ProductDAL pd = new ProductDAL();
     prod.AllProducts = pd.ListProducts();
     prod.Product = product;
     return View("Index", prod);
 }
 // GET: /Products/
 public ActionResult Index(ProductViewModel product)
 {
     ProductDAL pd = new ProductDAL();
     product.AllProducts = pd.ListProducts();
     return View(product);
 }
 public ActionResult GetProductList()
 {
     ProductDAL pd = new ProductDAL();
     return PartialView(pd.ListProducts());
 }
 // GET: /Products/Delete
 public ActionResult Delete(int id)
 {
     ProductDAL product = new ProductDAL();
     product.Delete(id);
     return RedirectToAction("Index");
 }
 public ActionResult Create([Bind(Include = "ProductID,Name,ProductNumber,ListPrice,Size,Weight")] Product product)
 {
     ProductDAL create = new ProductDAL();
     create.AddorUpdate(product);
     return RedirectToAction("Index");
 }