public IActionResult CreatePlaylist(string name, int amount) { var artistids = artistService.GetAllArtistIds(); if (artistids != "") { return(RedirectToAction("Index", "Playlist", new { limit = amount, artistids = artistids, playlistname = name })); } return(RedirectToAction("Index", "Data")); }