public IHttpActionResult PutAirports(int id, Airports airports)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != airports.AirportID)
            {
                return BadRequest();
            }

            db.Entry(airports).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!AirportsExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostAirports(Airports airports)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.Airports.Add(airports);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = airports.AirportID }, airports);
        }