Ejemplo n.º 1
0
 //constructor
 public MovieList(MovieListDTO movieListDTO)
 {
     this.Name         = movieListDTO.Name;
     this.MovieCount   = movieListDTO.MovieCount;
     this.Id           = movieListDTO.Id;
     this.UserId       = movieListDTO.UserId;
     this.movieListDAL = FactoryMovieListDAL.CreateMovieListDAL();
     foreach (MovieDTO movieDTO in movieListDTO.Movies)
     {
         Movie movie = new Movie(movieDTO);
         Movies.Add(movie);
     }
 }
Ejemplo n.º 2
0
 //constructor
 public MovieListCollection()
 {
     movieListCollDall = FactoryMovieListDAL.CreateMovieListCollectionDAL();
 }