public async Task <IActionResult> GetById(int id) { try { var getByIdEndereco = await _service.GetById(id); return(Ok(getByIdEndereco)); } catch (NotFoundException e) { return(this.StatusCode(StatusCodes.Status404NotFound, $"{e.Message}")); } catch (ArgumentException e) { return(this.StatusCode(StatusCodes.Status500InternalServerError, $"{e.Message}")); } }