public async Task <IActionResult> Add(EnderecoDto enderecoDto) { try { var addEndereco = await _service.Add(enderecoDto); return(Created($"/api/endereco/{addEndereco.Id}", addEndereco)); } catch (ArgumentException e) { return(this.StatusCode(StatusCodes.Status500InternalServerError, $"{e.Message}")); } }