public ActionResult Edit([Bind(Include = "Product_ID,productName,img,price,description")] Product product)
 {
     if (ModelState.IsValid)
     {
         db.Entry(product).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(product));
 }
 public ActionResult Edit([Bind(Include = "product_ID,User_ID,Bid_ID,Amount,Time,Bid1")] Bid bid)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bid).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.product_ID = new SelectList(db.Products, "product_ID", "Auction1", bid.product_ID);
     ViewBag.User_ID    = new SelectList(db.Users, "User_ID", "LastName", bid.User_ID);
     return(View(bid));
 }