public HomeController( INavBarItemRepository navBarItemRepository, ICarouselItemRepository carouselItemRepository) { _carouselItemRepository = carouselItemRepository; _navBarItemRepository = navBarItemRepository; }
public CarouselService(Microsoft.Extensions.Logging.ILogger <CarouselService> logger, GRA.Abstract.IDateTimeProvider dateTimeProvider, Abstract.IUserContextProvider userContextProvider, ICarouselRepository carouselRepository, ICarouselItemRepository carouselItemRepository) : base(logger, dateTimeProvider, userContextProvider) { SetManagementPermission(Permission.ManageCarousels); _carouselItemRepository = carouselItemRepository ?? throw new ArgumentNullException(nameof(carouselItemRepository)); _carouselRepository = carouselRepository ?? throw new ArgumentNullException(nameof(carouselRepository)); }
public AppUnitOfWork( IValidationService validationService, IDomainEventBus domainEventBus, AppContext appContext, IAuthorRepository authorRepository, IBlogPostRepository blogPostRepository, ICategoryRepository categoryRepository, ILocationRepository locationRepository, ITagRepository tagRepository, ICarouselItemRepository carouselItemRepository, IContentHtmlRepository contentHtmlRepository, IContentTextRepository contentTextRepository, IFaqRepository faqRepository, IMailingListRepository mailingListRepository, IProjectRepository projectRepository, ITestimonialRepository testimonialRepository ) : base(true, validationService, domainEventBus, appContext) { AuthorRepository = authorRepository; BlogPostRepository = blogPostRepository; CategoryRepository = categoryRepository; LocationRepository = locationRepository; TagRepository = tagRepository; AddRepository(AuthorRepository); AddRepository(BlogPostRepository); AddRepository(CategoryRepository); AddRepository(LocationRepository); AddRepository(TagRepository); CarouselItemRepository = carouselItemRepository; ContentHtmlRepository = contentHtmlRepository; ContentTextRepository = contentTextRepository; FaqRepository = faqRepository; MailingListRepository = mailingListRepository; ProjectRepository = projectRepository; TestimonialRepository = testimonialRepository; AddRepository(CarouselItemRepository); AddRepository(ContentHtmlRepository); AddRepository(ContentTextRepository); AddRepository(FaqRepository); AddRepository(MailingListRepository); AddRepository(ProjectRepository); AddRepository(TestimonialRepository); }