Example #1
0
 public ActionResult Edit([Bind(Include = "id,costumer,code,date")] Shipment shipment)
 {
     if (ModelState.IsValid)
     {
         db.Entry(shipment).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(shipment));
 }