public async Task <ActionResult> Edit([Bind(Include = "Id,username,password")] Admin_t admin_t) { if (ModelState.IsValid) { db.Entry(admin_t).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(admin_t)); }
public async Task <ActionResult> Edit([Bind(Include = "Id,From,To,Depart,Return")] Passenger_location passenger_location) { if (ModelState.IsValid) { db.Entry(passenger_location).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(passenger_location)); }
public async Task <ActionResult> Edit([Bind(Include = "Id,Fname,Lname,Kids,Adult,Elders,Phone")] Passenger_info passenger_info) { if (ModelState.IsValid) { db.Entry(passenger_info).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(passenger_info)); }