public IActionResult Delete(int id) { try { airport.DeletePlane(id); return(Ok()); } catch (System.Exception ex) { return(BadRequest(ex.Message)); } }
public async Task <IActionResult> Delete(int id) { try { var result = await airport.DeletePlane(id); return(Ok(result)); } catch (System.Exception ex) { return(BadRequest(ex.Message)); } }