public async Task <IActionResult> Delete(int id) { try { if (await _usuarioApp.Delete(id)) { return(Ok()); // 200 } return(Ok(null)); // 204 } catch (ValidationException valEx) { return(BadRequest(new ErroGenerico { Mensagem = valEx.Message })); } }