Ejemplo n.º 1
0
 public MuseumController(Context context)
 {
     this.museumRepository            = new MuseumRepository(context);
     this.artworkRepository           = new ArtworkRepository(context);
     this.imageRepository             = new ImageRepository(context);
     this.collectionRepository        = new CollectionRepository(context);
     this.eventRepository             = new EventRepository(context);
     this.newsRepository              = new NewsRepository(context);
     this.tickettypeRepository        = new TicketTypeRepository(context);
     this.ticketRepository            = new TicketRepository(context);
     this.workinghoursRepository      = new WorkingHourRepository(context);
     this.reviewRepository            = new ReviewRepository(context);
     this.userRepository              = new UserRepository(context);
     this.clientRepository            = new ClientRepository(context);
     this.artworkcollectionRepository = new ArtworkCollectionRepository(context);
 }
Ejemplo n.º 2
0
 public ArtworkCollectionController(Context context)
 {
     this.artworkCollectionRepository = new ArtworkCollectionRepository(context);
     this.likesRepository             = new LikesRepository(context);
     this.imageRepository             = new ImageRepository(context);
 }