Beispiel #1
0
        public async Task <IActionResult> GetAll()
        {
            try
            {
                var getAllEndereco = await _service.GetAll();

                return(Ok(getAllEndereco));
            }
            catch (ArgumentException e)
            {
                return(this.StatusCode(StatusCodes.Status500InternalServerError, $"{e.Message}"));
            }
        }