public ActionResult GetGenres() { List <string> model = null; CustomToken token = ViewBag.Token; if (!token.IsTokenEmpty()) { RecommendationSeedGenres recommendationSeedGenres = _paradifyService.GetGenres(token); if (recommendationSeedGenres != null && recommendationSeedGenres.Genres != null && recommendationSeedGenres.Genres.Count > 0) { model = recommendationSeedGenres.Genres; } } return(PartialView("~/Views/Shared/Genres/_Genres.cshtml", model)); }