// Get the movie's official trailer on YouTube
        private async Task GetTrailer()
        {
            try
            {
                string youtubeUrl = await YouTubeService.GeYoutubeTrailer(viewModel.Title, viewModel.Year);

                if (youtubeUrl != null)
                {
                    WebYoutube.Source = youtubeUrl;
                }
                else
                {
                    WebYoutube.Source = "";
                }
            }
            catch (Exception)
            {
                WebYoutube.Source = "";
            }
            waitLayout2.IsVisible = false;
            popuplayout.IsVisible = true;
        }
        // Get the movie's official trailer on YouTube
        private async Task GetTrailer(string title, string year)
        {
            try
            {
                string youtubeUrl = await YouTubeService.GeYoutubeTrailer(title, year);

                if (youtubeUrl != null)
                {
                    WebYoutube.Source = youtubeUrl;
                }
                else
                {
                    WebYoutube.Source = "";
                }
            }
            catch (Exception)
            {
                WebYoutube.Source = "";
            }
            waitLayout2.IsVisible = false;
            WebYoutube.IsVisible  = true;
        }