public ActionResult Edit([Bind(Include = "Customer_ID,Customer_Firstname,Customer_Lastname,Customer_Cell,Customer_Home,Customer_Address,Customer_State,Customer_Zip")] Customer customer) { if (ModelState.IsValid) { db.Entry(customer).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(customer)); }
public ActionResult Edit(Order order) { if (ModelState.IsValid) { db.Entry(order).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(order)); }
public ActionResult Edit([Bind(Include = "ProductID,Product_name,Product_Description,Product_Wholesaler_Cost,Product_Min_Price,Product_Max_Price,Product_Quantity")] Product product) { if (ModelState.IsValid) { db.Entry(product).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(product)); }