public ActionResult Edit([Bind(Include = "Id,RegNr,Color,NumberOfWheels,Manufacturer,Model")] Vehicle vehicle) { if (ModelState.IsValid) { repo.VehicleEntry(vehicle); return(RedirectToAction("Index")); } return(View(vehicle)); }
public ActionResult Edit([Bind(Include = "Id,RegNr,Color,NumberOfWheels,Manufacturer,Model")] Vehicle vehicle) { if (ModelState.IsValid) { repo.VehicleEntry(vehicle); return(RedirectToAction("Index")); } return(View(vehicle)); }