public async Task <IActionResult> Delete(string id) { HttpResponseMessageAPI responseAPI; try { responseAPI = await _outraAPIClient.DeleteAsync(id); } catch (Exception e) { throw; } if (responseAPI.Response.IsSuccessStatusCode) { return(Ok(responseAPI.Data)); } else { return(BadRequest()); } }