示例#1
0
        public IActionResult GetLanguages()
        {
            try
            {
                var result = _services.GetAvailableListLanguages();

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