Example #1
0
        public IActionResult GetCountries()
        {
            try
            {
                var result = _services.GetAvailableListCountries();

                return(Ok(result));
            }
            catch (Exception ex)
            {
                return(BadRequest(new Error()
                {
                    Message = $"Erro ao retornar os dados. {ex.Message}", Status = "error"
                }));
            }
        }