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

            db.up_19567.Remove(up_19567);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Sr_no,Station_code,Arrival,Departure,Distance,Day")] up_19567 up_19567)
 {
     if (ModelState.IsValid)
     {
         db.Entry(up_19567).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(up_19567));
 }
        public ActionResult Create([Bind(Include = "Sr_no,Station_code,Arrival,Departure,Distance,Day")] up_19567 up_19567)
        {
            if (ModelState.IsValid)
            {
                db.up_19567.Add(up_19567);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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