예제 #1
0
 public CmsController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IAuthorizationService authorizationService,
     ILoggerFactory loggerFactory,
     ISiteRepository siteRepository,
     ISitePageRepository sitePageRepository,
     ISectionRepository sectionRepository,
     IArticleRepository articleRepository,
     IBrandingRepository brandingRepository,
     ICarouselRepository carouselRepository,
     ICarouselSlideRepository carouselSlideRepository,
     IMenuRepository menuRepository,
     IMenuItemRepository menuItemRepository,
     Site site
     )
 {
     _userManager          = userManager;
     _signInManager        = signInManager;
     _authorizationService = authorizationService;
     _logger                      = loggerFactory.CreateLogger <CmsController>();
     this.siteRepository          = siteRepository;
     this.sitePageRepository      = sitePageRepository;
     this.sectionRepository       = sectionRepository;
     this.articleRepository       = articleRepository;
     this.brandingRepository      = brandingRepository;
     this.carouselRepository      = carouselRepository;
     this.carouselSlideRepository = carouselSlideRepository;
     this.menuRepository          = menuRepository;
     this.menuItemRepository      = menuItemRepository;
     this.site                    = site;
 }
예제 #2
0
 public CarouselService(ICarouselRepository carouselRepository, ICarouselValidator carouselValidator, IImageAnalysisService imageAnalysisService, IPageService pageService, IUnitOfWorkFactory unitOfWorkFactory, IUploadService uploadService, IWebHelperService webHelperService)
 {
     _carouselRepository   = carouselRepository;
     _carouselValidator    = carouselValidator;
     _imageAnalysisService = imageAnalysisService;
     _pageService          = pageService;
     _unitOfWorkFactory    = unitOfWorkFactory;
     _uploadService        = uploadService;
     _webHelperService     = webHelperService;
 }
예제 #3
0
 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));
 }
예제 #4
0
        public CarouselController(IMapper mapper, ICarouselRepository repo,
                                  IOptions <CloudinarySettings> cloudinaryConfig, IUnitOfWork unitOfWork)
        {
            this.unitOfWork       = unitOfWork;
            this.repo             = repo;
            this.mapper           = mapper;
            this.cloudinaryConfig = cloudinaryConfig;

            Account acc = new Account(
                this.cloudinaryConfig.Value.CloudName,
                this.cloudinaryConfig.Value.ApiKey,
                this.cloudinaryConfig.Value.ApiSecret
                );

            this.cloudinary = new Cloudinary(acc);
        }
예제 #5
0
 public HomeController(IPhotoRepository photoRepository, ICarouselRepository carouselRepository)
 {
     _photoRepository    = photoRepository;
     _carouselRepository = carouselRepository;
 }
예제 #6
0
 public CarouselController(ICarouselRepository carouselRepo,
                           IHostingEnvironment hosting)
 {
     this._carouselRepo = carouselRepo;
     this._hosting      = hosting;
 }
예제 #7
0
 public HomeController(ICarouselRepository carousel, IMenuCategoryRepository menuCategory)
 {
     carouselRepository     = carousel;
     menuCategoryRepository = menuCategory;
 }
예제 #8
0
 public CarouselController(ICarouselRepository repository)
 {
     _repository = repository;
 }
예제 #9
0
 public Carousels(ICarouselRepository categoryRepository)
 {
     this._carouselsRepo = categoryRepository;
 }
예제 #10
0
 public CarouselService(ICarouselRepository _carouselRepository)
 {
     carouselRepository = _carouselRepository;
 }
예제 #11
0
 public CarouselBL(ICarouselRepository CarouselRepository)
 {
     _CarouselRepository = CarouselRepository;
 }