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)); }