public IActionResult Delete() { try { flightService.DeleteAll(); } catch (Exception ex) { return(BadRequest(new { Type = ex.GetType().Name, ex.Message })); } return(NoContent()); }
public IActionResult Delete() { try { flightService.DeleteAll(); } catch (Exception ex) { return(BadRequest(new { Type = ex.GetType().Name, ex.Message })); } return(NoContent()); }