public ContactController( IBusinessDependencies dependencies, IContactSectionRepository contactSectionRepository, IMapRepository mapRepository, IMediaLibraryService mediaLibraryService ) : base(dependencies) { ContactSectionRepository = contactSectionRepository; MapRepository = mapRepository; MediaLibraryService = mediaLibraryService; }
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; }