예제 #1
0
        public static Movie getMovieByID(int id)
        {
            MovieSearcher.SearcherSoapClient searcher = new MovieSearcher.SearcherSoapClient("SearcherSoap");
            MovieSearcher.Movie movie = searcher.getMovieByID(id);
            Movie m = new Movie(movie.Id, movie.Title, movie.Genre, movie.YearPublished, movie.AgeRating, movie.DirectorName, movie.Actors.ToList <String>());

            return(m);
        }
예제 #2
0
 private static Movie convertFromWebService(MovieSearcher.Movie movie)
 {
     return(new Movie(movie.Id, movie.Title, movie.Genre, movie.YearPublished, movie.AgeRating, movie.DirectorName, movie.Actors.ToList <String>()));
 }