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