public async Task <dynamic> ListarModelos(int id_marca) { var retorno = await _modelAPI.GetModeloAsync(id_marca); if (retorno != null) { return(new { success = true, obj = await JsonSerializer.DeserializeAsync <List <Marca> >(retorno) }); } else { return new { success = false, msg = "Não foi possível recuperar os modelos." } }; } }