public ActionResult Edit(Waybill waybill)
 {
     db.Entry(waybill).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult EditStatus(Ride ride)
 {
     db.Entry(ride).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("DriverRides"));
 }
 public ActionResult EditOrder(Orders order)
 {
     db.Entry(order).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
Exemplo n.º 4
0
 public ActionResult EditDriver(Drivers driver)
 {
     db.Entry(driver).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("DriverList"));
 }