/// <summary> /// Find a list of artists according to the given artist name /// </summary> /// <returns></returns> public async Task <ActionResult> SearchResult() { string artisteName = Request["ArtistName"]; if (artisteName != "" && artisteName != null) { SpotifyArtist artist = await GetRequest <SpotifyArtist> .ArtistSearchNameAsync(artisteName, await GetAccessTokenAsync()); ViewBag.Artists = artist.Artists; return(View()); } else { return(await Index()); } }