public async Task <IActionResult> AddVideoToPlaylist(string videoId, string valorSelect) { try { await service.AddVideoToPlaylist(new VideoPlaylistViewModel() { VideoId = videoId, PlaylistId = Int32.Parse(valorSelect) }); } catch (Exception ex) { TempData["Message"] = ex.Message; } return(RedirectToAction("PlaylistDetail", "Playlist", new { id = Int32.Parse(valorSelect) })); }