public ActionResult Create(StopTime stoptime) { if (ModelState.IsValid) { db.stop_times.Add(stoptime); db.SaveChanges(); return RedirectToAction("Index"); } return View(stoptime); }
public ActionResult Edit(StopTime stoptime) { if (ModelState.IsValid) { db.Entry(stoptime).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(stoptime); }