public async Task <IActionResult> Delete(int id) { try { await pilotService.DeleteEntityAsync(id); } catch (ValidationException e) { return(BadRequest(new { Exception = e.Message })); } return(NoContent()); }
public async Task <IActionResult> Delete(int id) { try { await pilotService.DeleteEntityAsync(id); } catch (ValidationException e) { return(BadRequest(new { Exception = e.Message })); } return(NoContent()); }