public ActionResult DeleteConfirmed(int id)
        {
            stopping stopping = db.stopping.Find(id);

            db.stopping.Remove(stopping);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID_stopping,stop_name,arrival_time")] stopping stopping)
 {
     if (ModelState.IsValid)
     {
         db.Entry(stopping).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(stopping));
 }
        public ActionResult Create([Bind(Include = "ID_stopping,stop_name,arrival_time")] stopping stopping)
        {
            if (ModelState.IsValid)
            {
                db.stopping.Add(stopping);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(stopping));
        }
        // GET: stoppings/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            stopping stopping = db.stopping.Find(id);

            if (stopping == null)
            {
                return(HttpNotFound());
            }
            return(View(stopping));
        }