public IActionResult Delete(int id) { try { planeService.DeleteEntity(id); } catch (ValidationException e) { return(BadRequest(new { Exception = e.Message })); } return(NoContent()); }