// DELETE: api/Aerolineas/5
        public IHttpActionResult Delete(int id)
        {
            AerolineasModel p = CRUD.BuscarAerolineas().Where(e => e.ALNID == id).First();

            if (p == null)
            {
                return(NotFound());
            }

            Aereolinea.EliminarAerolinea(id);

            return(Ok(p));
        }
        public ActionResult Eliminar(int id)
        {
            Aerolineas ALN   = new Aerolineas();
            Bitacoras  BTC   = new Bitacoras();
            Errores    Error = new Errores();

            try
            {
                BTC.GenerarBitacora(ALN.SP_Solicitar_Consec_Aerolinea(id).Consec_Aerol, 1, 3, DateTime.Now, "Eliminar", "Eliminación de una Aerolínea",
                                    "", "", "", 0, "", "", "", "", "", DateTime.Now, "", 0);
                ALN.EliminarAerolinea(id);
                return(RedirectToAction("Index"));
            }
            catch (Exception ex)
            {
                Error.GenerarError(DateTime.Now, "Error al eliminar una aerolínea en la Tabla Aerolínea: " + ex);
                throw;
            }
        }