private object ReturnPlayListByTemperature(object searchTemperature) { // Busca musicas para recomendar object Musics; string genre = "classical"; if ((double)searchTemperature > 30) { genre = "party"; Musics = _spotify.GetPlayListByGenre(genre); } else if ((double)searchTemperature > 14 && (double)searchTemperature < 31) { genre = "pop"; Musics = _spotify.GetPlayListByGenre(genre); } else if ((double)searchTemperature > 9 && (double)searchTemperature < 15) { genre = "rock"; Musics = _spotify.GetPlayListByGenre(genre); } else { Musics = _spotify.GetPlayListByGenre(genre); } return(new { genre, Musics }); }