示例#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;
 }