public IActionResult GetCategories() { try { var result = _services.GetAvailableListCategories(); return(Ok(result)); } catch (Exception ex) { return(BadRequest(new Error() { Message = $"Erro ao retornar os dados. {ex.Message}", Status = "error" })); } }