public ActionResult Edit([Bind(Include = "TravelerID,FirstName,LastName,Email,Gender,Destination,LocalTrip,AgencyName")] Traveler traveler)
 {
     if (ModelState.IsValid)
     {
         db.Entry(traveler).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(traveler));
 }
Exemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "AgencyID,Name,Location")] Agency agency)
 {
     if (ModelState.IsValid)
     {
         db.Entry(agency).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(agency));
 }