Ejemplo n.º 1
0
 public BrandViewModelService(
     IBrandService brandService,
     IBrandLayoutService brandLayoutService,
     ICustomerService customerService,
     ISlugService slugService,
     IPictureService pictureService,
     ITranslationService translationService,
     IDiscountService discountService,
     ICustomerActivityService customerActivityService,
     IDateTimeService dateTimeService,
     ILanguageService languageService,
     IWorkContext workContext,
     SeoSettings seoSettings)
 {
     _brandLayoutService      = brandLayoutService;
     _brandService            = brandService;
     _customerService         = customerService;
     _slugService             = slugService;
     _pictureService          = pictureService;
     _translationService      = translationService;
     _discountService         = discountService;
     _customerActivityService = customerActivityService;
     _dateTimeService         = dateTimeService;
     _languageService         = languageService;
     _workContext             = workContext;
     _seoSettings             = seoSettings;
 }
Ejemplo n.º 2
0
 public CreateBoardCommandHandler(IDataContext dataContext, IMappingService mappingService,
                                  ISlugService slugService)
 {
     this.dataContext    = dataContext;
     this.mappingService = mappingService;
     this.slugService    = slugService;
 }
Ejemplo n.º 3
0
        private async Task <string> GetRouteParam(string first, string second, string third, RouteParams paramType)
        {
            ISlugService service = paramType == RouteParams.City
                                ? this.cityService
                                : paramType == RouteParams.Type
                                        ? (ISlugService)this.escortTypeService
                                        : paramType == RouteParams.Service
                                                ? this.serviceService
                                                : null;

            if (service == null)
            {
                throw new ArgumentException($"Unknown {nameof(paramType)}: {paramType}");
            }

            if (await service.IsSlugExists(first))
            {
                return(first);
            }
            if (await service.IsSlugExists(second))
            {
                return(second);
            }
            if (await service.IsSlugExists(third))
            {
                return(third);
            }

            return(string.Empty);
            // throw new ArgumentException($"Unkown route: {first}/{second}/{third}");
        }
Ejemplo n.º 4
0
 public VendorController(
     IWorkContext workContext,
     ITranslationService translationService,
     ICustomerService customerService,
     IGroupService groupService,
     IMessageProviderService messageProviderService,
     IVendorService vendorService,
     ISlugService slugService,
     IPictureService pictureService,
     ICountryService countryService,
     IMediator mediator,
     LanguageSettings languageSettings,
     VendorSettings vendorSettings,
     CaptchaSettings captchaSettings,
     CommonSettings commonSettings)
 {
     _workContext            = workContext;
     _translationService     = translationService;
     _customerService        = customerService;
     _groupService           = groupService;
     _messageProviderService = messageProviderService;
     _vendorService          = vendorService;
     _slugService            = slugService;
     _pictureService         = pictureService;
     _countryService         = countryService;
     _mediator         = mediator;
     _languageSettings = languageSettings;
     _vendorSettings   = vendorSettings;
     _captchaSettings  = captchaSettings;
     _commonSettings   = commonSettings;
 }
Ejemplo n.º 5
0
        public static async Task SeedCategoryAsync(ApplicationDbContext _context, ISlugService _slugService)
        {
            if (_context.Category.ToList().Count() == 0)
            {
                Category Foods = new Category
                {
                    Name        = "Food",
                    Description = "Food Food Food Food Food Food",
                    Slug        = _slugService.URLFriendly("Food")
                };
                await _context.AddAsync(Foods);

                await _context.SaveChangesAsync();

                Category Drinks = new Category
                {
                    Name        = "Drinks",
                    Description = "Drinks Drinks Drinks Drinks Drinks Drinks Drinks Drinks",
                    Slug        = _slugService.URLFriendly("Drinks")
                };
                await _context.AddAsync(Drinks);

                await _context.SaveChangesAsync();

                Category Snacks = new Category
                {
                    Name        = "Snacks",
                    Description = "Snacks Snacks Snacks Snacks Snacks Snacks Snacks",
                    Slug        = _slugService.URLFriendly("Snacks")
                };
                await _context.AddAsync(Snacks);

                await _context.SaveChangesAsync();
            }
        }
 public ProjectService(IDomainManagerService domainManagerService,
                       IIdentityService identityService,
                       IOrganizationRepository organizationRepository,
                       IProjectRepository projectRepository,
                       IProjectFeatureRepository projectFeatureRepository,
                       IUserRepository userRepository,
                       IProjectTemplateRepository projectTemplateRepository,
                       Func <ConfigurationManagementService, ICMSCredentialService> cmsCredentialService,
                       Func <ConfigurationManagementService, ICMSService> cmsService,
                       IEventBusService eventBusService,
                       ISlugService slugService,
                       IActivityMonitorService activityMonitorService,
                       IDataProtectorService dataProtectorService)
 {
     _domainManagerService      = domainManagerService;
     _identityService           = identityService;
     _organizationRepository    = organizationRepository;
     _projectRepository         = projectRepository;
     _projectFeatureRepository  = projectFeatureRepository;
     _userRepository            = userRepository;
     _projectTemplateRepository = projectTemplateRepository;
     _cmsService           = cmsService;
     _cmsCredentialService = cmsCredentialService;
     _eventBusService      = eventBusService;
     _slugService          = slugService;
     _correlationId        = activityMonitorService.GetCorrelationId();
     _dataProtectorService = dataProtectorService;
 }
 public CollectionViewModelService(
     ICollectionService collectionService,
     IProductCollectionService productCollectionService,
     ICollectionLayoutService collectionLayoutService,
     IProductService productService,
     ICustomerService customerService,
     IStoreService storeService,
     ISlugService slugService,
     IPictureService pictureService,
     ITranslationService translationService,
     IDiscountService discountService,
     ICustomerActivityService customerActivityService,
     IVendorService vendorService,
     IDateTimeService dateTimeService,
     ILanguageService languageService,
     IWorkContext workContext,
     SeoSettings seoSettings)
 {
     _collectionLayoutService  = collectionLayoutService;
     _collectionService        = collectionService;
     _productCollectionService = productCollectionService;
     _productService           = productService;
     _customerService          = customerService;
     _storeService             = storeService;
     _slugService             = slugService;
     _pictureService          = pictureService;
     _translationService      = translationService;
     _discountService         = discountService;
     _customerActivityService = customerActivityService;
     _vendorService           = vendorService;
     _dateTimeService         = dateTimeService;
     _languageService         = languageService;
     _workContext             = workContext;
     _seoSettings             = seoSettings;
 }
Ejemplo n.º 8
0
 public ReportController(
     IOrchardServices services,
     IProcessService processService,
     ISortService sortService,
     ISecureFileService secureFileService,
     ICfgService cfgService,
     ISlugService slugService,
     IAppDataFolder appDataFolder,
     IClock clock,
     IBatchCreateService batchCreateService,
     IBatchWriteService batchWriteService,
     IBatchRunService batchRunService,
     IBatchRedirectService batchRedirectService,
     IFileService fileService
     )
 {
     _orchardServices      = services;
     _processService       = processService;
     _secureFileService    = secureFileService;
     _sortService          = sortService;
     _batchCreateService   = batchCreateService;
     _batchWriteService    = batchWriteService;
     _batchRunService      = batchRunService;
     _batchRedirectService = batchRedirectService;
     T      = NullLocalizer.Instance;
     Logger = NullLogger.Instance;
 }
Ejemplo n.º 9
0
 public BikeModelService(IMapper mapper,
                         IBikeModelRepository bikeModelRepository,
                         ISlugService slugService)
 {
     _mapper = mapper;
     _bikeModelRepository = bikeModelRepository;
     _slugService         = slugService;
 }
Ejemplo n.º 10
0
 public ArgumentController(IArgumentService argumentService, ICategoryService categoryService, IPostService postService, ISlugService slugService, IPhotoService photoService)
 {
     this._argumentService = argumentService;
     this._categoryService = categoryService;
     this._postService     = postService;
     this._slugService     = slugService;
     this._photoService    = photoService;
 }
Ejemplo n.º 11
0
 public SiteTreeController(ICommonService commonService, ICategoryService categoryService, IArgumentService argumentService, IPostService postService, ISlugService slugService)
 {
     this._commonService   = commonService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._postService     = postService;
     this._slugService     = slugService;
 }
Ejemplo n.º 12
0
 public ManufacturerService(IMapper mapper,
                            IManufacturerRepository manufacturerRepository,
                            ISlugService slugService)
 {
     _mapper = mapper;
     _manufacturerRepository = manufacturerRepository;
     _slugService            = slugService;
 }
Ejemplo n.º 13
0
 public SlugRouteTransformer(
     ISlugService slugService,
     ILanguageService languageService,
     AppConfig config)
 {
     _slugService     = slugService;
     _languageService = languageService;
     _config          = config;
 }
Ejemplo n.º 14
0
 public CategoryPostsController(
     ApplicationDbContext context,
     ISlugService slugService,
     IImageService imageService)
 {
     _context      = context;
     _slugService  = slugService;
     _imageService = imageService;
 }
 public LeverPostingService(ILogger <LeverPostingService> logger, IPostingApiService postingApiService, ISession session, IShellHost shellHost, ShellSettings shellSettings, ISiteService siteService, ISlugService slugService)
 {
     _logger            = logger;
     _postingApiService = postingApiService;
     _session           = session;
     _shellSettings     = shellSettings;
     _shellHost         = shellHost;
     _siteService       = siteService;
     _slugService       = slugService;
 }
Ejemplo n.º 16
0
 public SitemapHelperService(
     ISlugService slugService,
     ISitemapManager sitemapManager,
     IStringLocalizer <SitemapHelperService> stringLocalizer
     )
 {
     _slugService    = slugService;
     _sitemapManager = sitemapManager;
     S = stringLocalizer;
 }
Ejemplo n.º 17
0
 public ReportController(
     IReportService reportService,
     ISlugService slugService,
     CombinedLogger <ReportController> logger
     )
 {
     _reportService = reportService;
     _slugService   = slugService;
     _logger        = logger;
 }
 public SuccessStoryController(CoreSettings coreSettings, IPermissionService permissionService, ISuccessStoryService successStoryService, IUserService userService, ISlugService slugService, IMediaService mediaService, IWebHelper webHelper)
 {
     _coreSettings = coreSettings;
     _mediaService = mediaService;
     _permissionService = permissionService;
     _successStoryService = successStoryService;
     _slugService = slugService;
     _userService = userService;
     _webHelper = webHelper;
 }
Ejemplo n.º 19
0
 public RewriteController(ISlugService slugService, ICategoryService categoryService, IArgumentService argumentService, IPostService postService, IAlbumService albumService, IPhotoService photoService, IVideoService videoService, IReviewService reviewService)
 {
     this._slugService     = slugService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._postService     = postService;
     this._albumService    = albumService;
     this._photoService    = photoService;
     this._videoService    = videoService;
     this._reviewService   = reviewService;
 }
Ejemplo n.º 20
0
 public DisqusMappingService(IOrchardServices services,
                             ICommentService commentService,
                             IRepository<DisqusMappingRecord> threadMappingRepository,
                             IRepository<DisqusPostMappingRecord> postMappingRepository, ISlugService slugs)
 {
     this.services = services;
     this.threadMappingRepository = threadMappingRepository;
     this.postMappingRepository = postMappingRepository;
     this.slugs = slugs;
     this.commentService = commentService;
 }
Ejemplo n.º 21
0
 public JobController(
     UserManager <ApplicationUser> userManager,
     IJobPostsService jobPostsService,
     ITagService tagService,
     ISlugService slugService)
 {
     this.userManager     = userManager;
     this.jobPostsService = jobPostsService;
     this.tagService      = tagService;
     this.slugService     = slugService;
 }
 public MapController(
     IReportService reportService,
     ISlugService slugService,
     ISettingsService settings,
     CombinedLogger <ReportController> logger
     )
 {
     _reportService = reportService;
     _settings      = settings;
     _logger        = logger;
 }
Ejemplo n.º 23
0
 public PostController(ICommonService commonService, IPostService postService, ICategoryService categoryService, IArgumentService argumentService, IAlbumService albumService, IPhotoService photoService, IVideoService videoService, ISlugService slugService)
 {
     this._commonService   = commonService;
     this._postService     = postService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._albumService    = albumService;
     this._photoService    = photoService;
     this._videoService    = videoService;
     this._slugService     = slugService;
 }
Ejemplo n.º 24
0
 public BlogMLImporter(ILogger <BlogMLImporter> logger, IPostService postService, IPageService pageService, ICategoryService categoryService, ITagsService tagsService, ICommentService commentService, IIPAddressService iPAddressService, ISlugService slugService)
 {
     _logger           = logger;
     _postService      = postService;
     _pageService      = pageService;
     _categoryService  = categoryService;
     _tagsService      = tagsService;
     _commentService   = commentService;
     _iPAddressService = iPAddressService;
     _slugService      = slugService;
 }
Ejemplo n.º 25
0
 public HomeController(ILogger <HomeController> logger, IPhotoService photoService, IPodcastService podcastService, ICategoryService categoryService, IArgumentService argumentService, IPostService postService, ISlugService slugService, IHomeService homeService)
 {
     _logger               = logger;
     this._photoService    = photoService;
     this._podcastService  = podcastService;
     this._categoryService = categoryService;
     this._argumentService = argumentService;
     this._postService     = postService;
     this._slugService     = slugService;
     this._homeService     = homeService;
 }
Ejemplo n.º 26
0
 public PhotoSubmitService(
     IMediaService mediaService,
     IActionSubmitService actionSubmitService,
     IContentManager contentManager,
     ISlugService slugService)
 {
     _mediaService        = mediaService;
     _actionSubmitService = actionSubmitService;
     _contentManager      = contentManager;
     _slugService         = slugService;
 }
Ejemplo n.º 27
0
 public CfgController(
     IOrchardServices services,
     ICfgService cfgService,
     ISlugService slugService
     )
 {
     _orchardServices = services;
     _cfgService      = cfgService;
     _slugService     = slugService;
     T      = NullLocalizer.Instance;
     Logger = NullLogger.Instance;
 }
Ejemplo n.º 28
0
 public BlogMLExporter(ILogger <BlogMLExporter> logger, IPostService postService, IPageService pageService, ICategoryService categoryService, ITagsService tagsService, ICommentService commentService, ISlugService slugService, BlogUserManager userManager, BasicSettings basicSettings)
 {
     _logger          = logger;
     _postService     = postService;
     _pageService     = pageService;
     _categoryService = categoryService;
     _tagsService     = tagsService;
     _commentService  = commentService;
     _slugService     = slugService;
     _userManager     = userManager;
     _basicSettings   = basicSettings;
 }
Ejemplo n.º 29
0
 public PageViewModelService(IPageLayoutService pageLayoutService, IPageService pageService, ISlugService slugService, ITranslationService translationService,
                             ICustomerActivityService customerActivityService, IStoreService storeService, ILanguageService languageService, IDateTimeService dateTimeService, SeoSettings seoSettings)
 {
     _pageLayoutService       = pageLayoutService;
     _pageService             = pageService;
     _slugService             = slugService;
     _translationService      = translationService;
     _customerActivityService = customerActivityService;
     _storeService            = storeService;
     _languageService         = languageService;
     _dateTimeService         = dateTimeService;
     _seoSettings             = seoSettings;
 }
Ejemplo n.º 30
0
 public KnowledgebaseViewModelService(ITranslationService translationService,
                                      IKnowledgebaseService knowledgebaseService, ICustomerActivityService customerActivityService,
                                      ICustomerService customerService, IDateTimeService dateTimeService, ISlugService slugService,
                                      ILanguageService languageService, SeoSettings seoSettings)
 {
     _translationService      = translationService;
     _knowledgebaseService    = knowledgebaseService;
     _customerActivityService = customerActivityService;
     _customerService         = customerService;
     _dateTimeService         = dateTimeService;
     _slugService             = slugService;
     _languageService         = languageService;
     _seoSettings             = seoSettings;
 }
 public InternalProjectService(IDomainManagerService domainManagerService,
                               Func <ConfigurationManagementService, ICMSCredentialService> cmsCredentialService,
                               Func <ConfigurationManagementService, ICMSService> cmsService,
                               IProjectRepository projectRepository,
                               ISlugService slugService,
                               IOptions <FakeAccountServiceOptions> vstsFakeOptions)
 {
     _domainManagerService = domainManagerService;
     _projectRepository    = projectRepository;
     _cmsService           = cmsService;
     _cmsCredentialService = cmsCredentialService;
     _vstsFakeOptions      = vstsFakeOptions;
     _slugService          = slugService;
 }
Ejemplo n.º 32
0
 public CopyProductService(IProductService productService,
                           ILanguageService languageService,
                           IPictureService pictureService,
                           IDownloadService downloadService,
                           ISlugService slugService,
                           SeoSettings seoSettings)
 {
     _productService  = productService;
     _languageService = languageService;
     _pictureService  = pictureService;
     _downloadService = downloadService;
     _slugService     = slugService;
     _seoSettings     = seoSettings;
 }
Ejemplo n.º 33
0
 public SlugTokens(ISlugService slugService) {
     T = NullLocalizer.Instance;
     _slugService = slugService;
 }
Ejemplo n.º 34
0
 public SlugTokens(ISlugService slugService, IHomeAliasService homeAliasService) {
     T = NullLocalizer.Instance;
     _slugService = slugService;
     _homeAliasService = homeAliasService;
 }