示例#1
0
 public GalleryController(ILogger <GalleryController> logger,
                          IGalleryReadRepository readModel,
                          IFamilyEventReadRepository familyEventReadRepository,
                          IWriteRepository <Repo.Core.Model.Gallery, Guid> galleryWriteModel,
                          IWriteRepository <Repo.Core.Model.ImageReference, Guid> imageReferenceWriteModel,
                          IImageReferenceReadRepository imageReferenceReadRepository,
                          IFileService fileService,
                          ClanAndPeopleService clanAndPeopleService,
                          ContextService contextService)
     : base("Galleries", "gallery")
 {
     _logger    = logger;
     _readModel = readModel;
     _familyEventReadRepository = familyEventReadRepository;
     _writeModel = galleryWriteModel;
     _imageReferenceWriteModel     = imageReferenceWriteModel;
     _imageReferenceReadRepository = imageReferenceReadRepository;
     _fileService          = fileService;
     _clanAndPeopleService = clanAndPeopleService;
     _contextService       = contextService;
 }
示例#2
0
 public EventController(IFamilyEventReadRepository readmodel,
                        IWriteRepository <Repo.Core.Model.FamilyEvent, Guid> writeModel,
                        IImageReferenceReadRepository imageReferenceReadRepository,
                        IGalleryReadRepository galleryReadRepository,
                        ContextService contextService,
                        IWriteRepository <Repo.Core.Model.Gallery, Guid> galleryWriteRepository,
                        IFileService fileService,
                        IWriteRepository <Repo.Core.Model.ImageReference, Guid> imageReferenceWriteModel,
                        ISesService sesServive,
                        ClanAndPeopleService clanAndPeopleService)
     : base("Significant Events", "events")
 {
     _readmodel  = readmodel;
     _writeModel = writeModel;
     _imageReferenceReadRepository = imageReferenceReadRepository;
     _galleryReadRepository        = galleryReadRepository;
     _contextService           = contextService;
     _galleryWriteRepository   = galleryWriteRepository;
     _fileService              = fileService;
     _imageReferenceWriteModel = imageReferenceWriteModel;
     _sesServive           = sesServive;
     _clanAndPeopleService = clanAndPeopleService;
 }
 public ResourcesController(IFileService fileService, IGalleryReadRepository galleryReadModel, IImageReferenceReadRepository imageReferenceReadRepository) : base("Resources", "Resources")
 {
     _fileService                  = fileService;
     _galleryReadModel             = galleryReadModel;
     _imageReferenceReadRepository = imageReferenceReadRepository;
 }