public ActionResult Edit([Bind(Include = "AirportCodeID,IATACode,AirportName,City,Country")] AirportCode airportCode) { if (ModelState.IsValid) { db.Entry(airportCode).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(airportCode)); }
public ActionResult Edit([Bind(Include = "ID,FilteredItem,Model,View,CreatedBy,CreatedDate,LastModifiedBy,LastModifiedDate")] SearchCriteria searchCriteria) { if (ModelState.IsValid) { db.Entry(searchCriteria).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(searchCriteria)); }