public EntertainmentModel.Movie GetMovieById(int id)
        {
            EntertainmentService1.EntertainmentServiceClient sC = new EntertainmentService1.EntertainmentServiceClient();

            var movie = sC.GetMovieById(id);

            EntertainmentModel.Movie convertedMovie = ConvertToModelMovie(movie);

            return(convertedMovie);
        }
        private EntertainmentModel.Movie ConvertToModelMovie(PopcornTime_2._0.EntertainmentService1.Movie serviceEntertainments)
        {
            EntertainmentModel.Language language = new EntertainmentModel.Language
            {
                Id   = serviceEntertainments.Language.Id,
                Name = serviceEntertainments.Language.Name
            };

            EntertainmentModel.Genre genre = new EntertainmentModel.Genre
            {
                Id   = serviceEntertainments.Genre.Id,
                Name = serviceEntertainments.Genre.Name
            };

            EntertainmentModel.Country country = new EntertainmentModel.Country
            {
                Id   = serviceEntertainments.Country.Id,
                Name = serviceEntertainments.Country.Name
            };



            EntertainmentModel.Movie convertedMovie = new EntertainmentModel.Movie
            {
                Id              = serviceEntertainments.Id,
                Genre           = genre,
                Title           = serviceEntertainments.Title,
                Country         = country,
                Language        = language,
                ReleaseDate     = serviceEntertainments.ReleaseDate,
                StoryLine       = serviceEntertainments.StoryLine,
                FilmingLocation = serviceEntertainments.FilmingLocation,
                Information     = serviceEntertainments.Information,
                Comments        = ConvertToModelComments(serviceEntertainments.Comments)
            };


            return(convertedMovie);
        }