public IActionResult DeleteAirport([FromRoute] int airportId) { var response = new DeleteAirportResponse(); try { response = _airportService.DeleteAirport(new DeleteAirportRequest { AirportId = airportId }); } catch (Exception ex) { return(BadRequest(ex.ToString())); } if (response.IsSuccessful) { return(Ok(response.Message)); } else { return(BadRequest(response.Message)); } }