public List <Model.Movie> GetAllMovies() { using (PersonServiceClient proxy = new PersonServiceClient()) { List <Model.Movie> movies = new List <Model.Movie>(); List <Movie> mS = proxy.GetAllMovies(); foreach (Movie m in mS) { Model.Movie movie = new Model.Movie(); movie.MovieId = m.MovieId; movie.MovieLength = m.MovieLength; movie.PremiereDate = m.PremiereDate; movie.Resume = m.Resume; movie.Title = m.Title; movie.ImagePath = m.ImagePath; movie.Genre = m.Genre; movies.Add(movie); } return(movies); } }