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"));
 }
Beispiel #4
0
 public ActionResult EditDriver(Drivers driver)
 {
     db.Entry(driver).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("DriverList"));
 }