コード例 #1
0
 public ContactController(
     IBusinessDependencies dependencies,
     IContactSectionRepository contactSectionRepository,
     IMapRepository mapRepository,
     IMediaLibraryService mediaLibraryService
     ) : base(dependencies)
 {
     ContactSectionRepository = contactSectionRepository;
     MapRepository            = mapRepository;
     MediaLibraryService      = mediaLibraryService;
 }
コード例 #2
0
 public ContactController(
     IBusinessDependencies dependencies,
     IContactSectionRepository contactSectionRepository,
     IMapRepository mapRepository,
     IMediaLibraryRepository mediaLibraryRepository
     ) : base(dependencies)
 {
     ContactSectionRepository = contactSectionRepository ?? throw new ArgumentNullException(nameof(contactSectionRepository));
     MapRepository            = mapRepository ?? throw new ArgumentNullException(nameof(mapRepository));
     MediaLibraryRepository   = mediaLibraryRepository ?? throw new ArgumentNullException(nameof(mediaLibraryRepository));
     MediaLibraryRepository.MediaLibraryName     = AppConfig.MedicalCentersLibrary;
     MediaLibraryRepository.MediaLibrarySiteName = Dependencies.SiteContextService.SiteName;
 }