public async Task <List <RecommendationResponse> > GetRecommendationAsync(string userEmail) { var result = new List <RecommendationResponse>(); var user = await _userService.GetByEmailAsync(userEmail); var hometown = user.Hometown; var temperature = await _weatherMapsService.GetHometownTemperature(hometown); var recommend = _recommendations.FirstOrDefault(x => x.IsRightPlaylist(temperature))?.Recommend(); if (recommend != null) { result = await _spotifyService.GetPlaylistByTypeAsync(recommend.Value); } return(result); }