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

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

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

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