Beispiel #1
0
 public ActionResult EditProduct(Product product)
 {
     db.Entry(product).State = EntityState.Modified;
     db.SaveChanges();
     return(Redirect("/Product/ShowProducts"));
 }
Beispiel #2
0
 public void Update(Cart cart)
 {
     db.Entry(cart).State = EntityState.Modified;
 }
 public void Update(CartLine cartline)
 {
     db.Entry(cartline).State = EntityState.Modified;
 }
Beispiel #4
0
 public void Update(Product product)
 {
     db.Entry(product).State = EntityState.Modified;
 }