public ContactUsController
 (
     IContactUsService contactUsService
 )
 {
     _contactUsService = contactUsService;
 }
 public HomeController(IRobotsService robotsService,
                       IManifestService manifestService,
                       IContactUsService contactUsService,
                       IUserSettingsService userSettingsService,
                       IUserProfileService userProfileService,
                       ILogService logService, IMapper mapper,
                       IVideoAttributesService videoAttributesService,
                       IBannerDetailsService bannerDetailsService,
                       ISitemapService sitemapService,
                       IOpenSearchService openSearchService,
                       IBrowserConfigService browserConfigService,
                       IFeedService feedService)
     : base(logService, mapper)
 {
     _videoAttributesService = videoAttributesService;
     _mapper = mapper;
     _userSettingsService  = userSettingsService;
     _userProfileService   = userProfileService;
     _bannerDetailsService = bannerDetailsService;
     _contactUsService     = contactUsService;
     _manifestService      = manifestService;
     _robotsService        = robotsService;
     _sitemapService       = sitemapService;
     _openSearchService    = openSearchService;
     _browserConfigService = browserConfigService;
     _feedService          = feedService;
 }
 public ContactUsMessageController(
     IContactUsService contactUsService,
     IMapper mapper)
 {
     _contactUsService = contactUsService;
     _mapper           = mapper;
 }
示例#4
0
 public UserQueriesController(ILogService logService, IMapper mapper, IContactUsService contactUsService)
     : base(logService, mapper)
 {
     _logService       = logService;
     _mapper           = mapper;
     _contactUsService = contactUsService;
 }
 public ContactUsController(ILogger <ContactUsController> logger, IAboutUsService aboutUsService, IContactUsService contactUsService, ICoachService coachService)
 {
     this._aboutUsService   = aboutUsService;
     this._contactUsService = contactUsService;
     this._coachService     = coachService;
     this._logger           = logger;
 }
示例#6
0
 public InsertContactUsCommandHandler(
     IContactUsService contactUsService,
     IWebHelper webHelper)
 {
     _contactUsService = contactUsService;
     _webHelper        = webHelper;
 }
		public HomeController(IOrchardServices orchardServices, IContactUsService contactUsService, ICommentValidator commentValidator, IMessageManager messageManager, IMembershipService membershipService)
		{
			Services	 = orchardServices;
			_contactUsService = contactUsService;
			_commentValidator = commentValidator;
			_membershipService = membershipService;
			_messageManager = messageManager;
		}
示例#8
0
        public HomeController(IContactUsService contactUsService, IOptionsSnapshot <ShowingSettingSite> settings)
        {
            _contactUsService = contactUsService;
            _contactUsService.CheckArgumentIsNull(nameof(_contactUsService));

            _settings = settings;
            _settings.CheckArgumentIsNull(nameof(_settings));
        }
 public ContactFormController(IContactUsService contactUsService,
                              IContactFormViewModelService contactFormViewModelService,
                              ILocalizationService localizationService)
 {
     this._contactUsService            = contactUsService;
     this._contactFormViewModelService = contactFormViewModelService;
     this._localizationService         = localizationService;
 }
 public HomeController(
     IAboutUsService aboutUsService,
     IContactUsService contactUsService,
     IMailHelper mailHelper)
 {
     this.aboutUsService   = aboutUsService;
     this.contactUsService = contactUsService;
     this.mailHelper       = mailHelper;
 }
示例#11
0
 public HomeController(
     IAuthenticateService authenticateService,
     IContactUsService contactUsService,
     IUserLogService userLogService)
 {
     _authenticateService = authenticateService;
     _contactUsService = contactUsService;
     _userLogService = userLogService;
 }
 public AdministrationController(
     IEveOnlineService eveOnlineService,
     IUserService userService,
     IContactUsService contactUsService)
 {
     _eveOnlineService = eveOnlineService;
     _userService = userService;
     _contactUsService = contactUsService;
 }
 public ContactFormController(IContactUsService contactUsService,
                              IContactFormViewModelService contactFormViewModelService,
                              ILocalizationService localizationService,
                              IWorkContext workContext)
 {
     _contactUsService            = contactUsService;
     _contactFormViewModelService = contactFormViewModelService;
     _localizationService         = localizationService;
     _workContext = workContext;
 }
 public ContactFormController(IContactUsService contactUsService,
                              IContactFormViewModelService contactFormViewModelService,
                              ITranslationService translationService,
                              IWorkContext workContext)
 {
     _contactUsService            = contactUsService;
     _contactFormViewModelService = contactFormViewModelService;
     _translationService          = translationService;
     _workContext = workContext;
 }
 public ContactUsController(IBuildContactUsVmService contactUsVmService,
                            IContactUsService contactUsService,
                            IDistributedCache distributedCache,
                            Microsoft.Extensions.Configuration.IConfiguration configuration,
                            IApplicationSessionState sessionState,
                            ILogger <ContactUsController> logger) : base(logger, distributedCache, sessionState, configuration)
 {
     _contactUsVmService = contactUsVmService;
     _contactUsService   = contactUsService;
 }
示例#16
0
 public HomeController(IUnderConstructionService underConstructionService,
                       IProductService productService, IProductCategoryService productCategoryService, IBrochureService brochureService, IContactUsService contactUsService,
                       IWorkflowMessageService workflowMessageService)
 {
     _underConstructionService = underConstructionService;
     _productService           = productService;
     _productCategoryService   = productCategoryService;
     _brochureService          = brochureService;
     _contactUsService         = contactUsService;
     _workflowMessageService   = workflowMessageService;
 }
示例#17
0
 public HomeController(IUnderConstructionService underConstructionService,
    IProductService productService, IProductCategoryService productCategoryService, IBrochureService brochureService, IContactUsService contactUsService,
     IWorkflowMessageService workflowMessageService)
 {
     _underConstructionService = underConstructionService;
     _productService = productService;
     _productCategoryService = productCategoryService;
     _brochureService = brochureService;
     _contactUsService = contactUsService;
     _workflowMessageService = workflowMessageService;
 }
        public ContactUsManagementController(IContactUsService contactUsService, IOptionsSnapshot <SiteSettings> siteOptions, IEmailSender emailSender)
        {
            _contactUsService = contactUsService;
            _contactUsService.CheckArgumentIsNull(nameof(_contactUsService));

            _siteOptions = siteOptions;
            _siteOptions.CheckArgumentIsNull(nameof(_siteOptions));

            _emailSender = emailSender;
            _emailSender.CheckArgumentIsNull(nameof(_emailSender));
        }
示例#19
0
 public async Task <IActionResult> ContactUs([FromServices] IContactUsService contactUsService, ContactUs model)
 {
     if (!ModelState.IsValid)
     {
         return(Json(new { IsSuccessful = false, Message = ModelState.GetModelError() }));
     }
     if (User.Identity.IsAuthenticated)
     {
         model.UserId = User.GetUserId();
     }
     return(Json(await contactUsService.AddAsync(model)));
 }
示例#20
0
 public ContactUsController(IContactUsService contactUsService,
                            IEmailSender emailSender,
                            IConfiguration config,
                            IOptions <EmailConfigurationSettingsModel> emailConfigurationSettings)
 {
     _contactUsService              = contactUsService;
     _emailSender                   = emailSender;
     _configuration                 = config;
     ViewBag.TitleHtmlMetaTag       = "Contact Us";
     ViewBag.DescriptionHtmlMetaTag = "You can contact me by this page.";
     _emailConfigurationSettings    = emailConfigurationSettings;
 }
 public ContactFormViewModelService(IContactUsService contactUsService,
                                    IDateTimeHelper dateTimeHelper,
                                    ILocalizationService localizationService,
                                    IWorkContext workContext,
                                    IStoreService storeService,
                                    IEmailAccountService emailAccountService)
 {
     this._contactUsService    = contactUsService;
     this._dateTimeHelper      = dateTimeHelper;
     this._localizationService = localizationService;
     this._workContext         = workContext;
     this._storeService        = storeService;
     this._emailAccountService = emailAccountService;
 }
 public ContactFormViewModelService(IContactUsService contactUsService,
                                    IDateTimeService dateTimeService,
                                    ITranslationService translationService,
                                    IWorkContext workContext,
                                    IStoreService storeService,
                                    IEmailAccountService emailAccountService)
 {
     _contactUsService    = contactUsService;
     _dateTimeService     = dateTimeService;
     _translationService  = translationService;
     _workContext         = workContext;
     _storeService        = storeService;
     _emailAccountService = emailAccountService;
 }
示例#23
0
        public ContactUsController(


            IContactUsService contactusService,



            IUnitOfWork uow

            )
        {
            _contactUsService = contactusService;
            _uow = uow;
        }
 public ContactFormController(IContactUsService contactUsService,
     IDateTimeHelper dateTimeHelper, 
     ILocalizationService localizationService,
     IPermissionService permissionService,
     IWorkContext workContext,
     IStoreService storeService,
     IEmailAccountService emailAccountService)
 {
     this._contactUsService = contactUsService;
     this._dateTimeHelper = dateTimeHelper;
     this._localizationService = localizationService;
     this._permissionService = permissionService;
     this._workContext = workContext;
     this._storeService = storeService;
     this._emailAccountService = emailAccountService;
 }
 public ContactFormController(IContactUsService contactUsService,
                              IDateTimeHelper dateTimeHelper,
                              ILocalizationService localizationService,
                              IPermissionService permissionService,
                              IWorkContext workContext,
                              IStoreService storeService,
                              IEmailAccountService emailAccountService)
 {
     this._contactUsService    = contactUsService;
     this._dateTimeHelper      = dateTimeHelper;
     this._localizationService = localizationService;
     this._permissionService   = permissionService;
     this._workContext         = workContext;
     this._storeService        = storeService;
     this._emailAccountService = emailAccountService;
 }
示例#26
0
 public HomeController(
     IContentService contentService,
     ICategoryService categoryService,
     ISessionRequestService sessionRequestService,
     IContentSelectedService contentSelectedService,
     IContactUsService contactUsService,
     ISliderService sliderService
     )
 {
     _contentService         = contentService;
     _contentSelectedService = contentSelectedService;
     _categoryService        = categoryService;
     _sessionRequestService  = sessionRequestService;
     _contactUsService       = contactUsService;
     _sliderService          = sliderService;
 }
示例#27
0
        public CommonController(
            IApplicationUserManager applicationUserManager,
            IBrandService brandService,
            ICategoryService categoryService,
            IContactUsService contactUsService,
            IFolderService folderService,
            IMenuService menuService,
            IPageService pageService,
            IPictureService pictureService,
            ISlideShowService slideShowService,
            IStaticContentService staticContentService,
            IUsefulLinkService usefulLinkService)
        {
            _userManager = applicationUserManager;
            _userManager.CheckArgumentIsNull(nameof(_userManager));

            _brandService = brandService;
            _brandService.CheckArgumentIsNull(nameof(_brandService));

            _categoryService = categoryService;
            _categoryService.CheckArgumentIsNull(nameof(_categoryService));

            _contactUsService = contactUsService;
            _contactUsService.CheckArgumentIsNull(nameof(_contactUsService));

            _folderService = folderService;
            _folderService.CheckArgumentIsNull(nameof(_folderService));

            _menuService = menuService;
            _menuService.CheckArgumentIsNull(nameof(_menuService));

            _pageService = pageService;
            _pageService.CheckArgumentIsNull(nameof(_pageService));

            _pictureService = pictureService;
            _pictureService.CheckArgumentIsNull(nameof(_pictureService));

            _slideShowService = slideShowService;
            _slideShowService.CheckArgumentIsNull(nameof(_slideShowService));

            _staticContentService = staticContentService;
            _staticContentService.CheckArgumentIsNull(nameof(_staticContentService));

            _usefulLinkService = usefulLinkService;
            _usefulLinkService.CheckArgumentIsNull(nameof(_usefulLinkService));
        }
示例#28
0
        public ShowPageController(IOptionsSnapshot <ShowingSettingSite> settings, IPageService pageService, ICategoryService categoryService, IApplicationUserManager applicationUserManager, IContactUsService contactUsService)
        {
            _settings = settings;
            _settings.CheckArgumentIsNull(nameof(_settings));

            _pageService = pageService;
            _pageService.CheckArgumentIsNull(nameof(_pageService));

            _categoryService = categoryService;
            _categoryService.CheckArgumentIsNull(nameof(_categoryService));

            _applicationUserManager = applicationUserManager;
            _applicationUserManager.CheckArgumentIsNull(nameof(_applicationUserManager));

            _contactUsService = contactUsService;
            _contactUsService.CheckArgumentIsNull(nameof(_contactUsService));
        }
示例#29
0
        public ContactUsServiceTests()
        {
            var guid    = Guid.NewGuid().ToString();
            var options = new DbContextOptionsBuilder <ForumContext>()
                          .UseInMemoryDatabase(guid).Options;
            var context = new ForumContext(options);

            this.contactUsRepository = new Repository <ContactUs>(context);

            var userStore = new UserStore <User>(context);
            var logger    = new Mock <ILogger <ContactUsService> >();

            var mapperProfile = new MapInitialization();
            var conf          = new MapperConfiguration(cfg => cfg.AddProfile(mapperProfile));
            var mapper        = new Mapper(conf);

            var fakeUserManager = new FakeUserManager(userStore);

            this.contactUsService = new ContactUsService(contactUsRepository, fakeUserManager, logger.Object, mapper);
        }
示例#30
0
        public HomeController(BanobatDbContext dbContext,
                              IHospitalService hospitalService,
                              IClinicService clinicService,
                              IShiftCenterService polyclinicService,
                              IAppointmentService appointmentService,
                              IStatisticsService statisticsService,
                              IIPAsManager iPAsManager,
                              IPersonService userService,
                              IContactUsService contactUsService)
        {
            _dbContext          = dbContext;
            _hospitalService    = hospitalService;
            _clinicService      = clinicService;
            _polyclinicService  = polyclinicService;
            _appointmentService = appointmentService;
            _statisticsService  = statisticsService;
            _iPAsManager        = iPAsManager;
            _userService        = userService;
            _contactUsService   = contactUsService;

            logger = LogManager.GetCurrentClassLogger();
        }
示例#31
0
        public CommonController(ICategoryService categoryService,
            IProductService productService,
            IManufacturerService manufacturerService,
            ITopicService topicService,
            ILanguageService languageService,
            ICurrencyService currencyService,
            ILocalizationService localizationService,
            IWorkContext workContext,
            IStoreContext storeContext,
            IQueuedEmailService queuedEmailService,
            IEmailAccountService emailAccountService,
            ISitemapGenerator sitemapGenerator,
            IThemeContext themeContext,
            IThemeProvider themeProvider,
            IForumService forumService,
            IGenericAttributeService genericAttributeService,
            IWebHelper webHelper,
            IPermissionService permissionService,
            ICacheManager cacheManager,
            ICustomerActivityService customerActivityService,
            IVendorService vendorService,
            IContactUsService contactUsService,
            CustomerSettings customerSettings,
            TaxSettings taxSettings,
            CatalogSettings catalogSettings,
            StoreInformationSettings storeInformationSettings,
            EmailAccountSettings emailAccountSettings,
            CommonSettings commonSettings,
            BlogSettings blogSettings,
            NewsSettings newsSettings,
            ForumSettings forumSettings,
            LocalizationSettings localizationSettings,
            CaptchaSettings captchaSettings,
            VendorSettings vendorSettings)
        {
            this._categoryService = categoryService;
            this._productService = productService;
            this._manufacturerService = manufacturerService;
            this._topicService = topicService;
            this._languageService = languageService;
            this._currencyService = currencyService;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._queuedEmailService = queuedEmailService;
            this._emailAccountService = emailAccountService;
            this._sitemapGenerator = sitemapGenerator;
            this._themeContext = themeContext;
            this._themeProvider = themeProvider;
            this._forumservice = forumService;
            this._genericAttributeService = genericAttributeService;
            this._webHelper = webHelper;
            this._permissionService = permissionService;
            this._cacheManager = cacheManager;
            this._customerActivityService = customerActivityService;
            this._vendorService = vendorService;
            this._contactUsService = contactUsService;

            this._customerSettings = customerSettings;
            this._taxSettings = taxSettings;
            this._catalogSettings = catalogSettings;
            this._storeInformationSettings = storeInformationSettings;
            this._emailAccountSettings = emailAccountSettings;
            this._commonSettings = commonSettings;
            this._blogSettings = blogSettings;
            this._newsSettings = newsSettings;
            this._forumSettings = forumSettings;
            this._localizationSettings = localizationSettings;
            this._captchaSettings = captchaSettings;
            this._vendorSettings = vendorSettings;
        }
示例#32
0
 public ContactUsAPIController()
 {
     _IContactUsService = new ContactUsService();
 }
示例#33
0
 public ContactUs(IContactUsService service)
 {
     _contactUsService = service;
 }
示例#34
0
 public MemberContactUsController(IContactUsService ContactUsSrv, IUserService userSrv)
 {
     _ContactUsSrv = ContactUsSrv;
     _userSrv      = userSrv;
 }
示例#35
0
        public CommonController(ICategoryService categoryService,
                                IProductService productService,
                                IManufacturerService manufacturerService,
                                ITopicService topicService,
                                ILanguageService languageService,
                                ICurrencyService currencyService,
                                ILocalizationService localizationService,
                                IWorkContext workContext,
                                IStoreContext storeContext,
                                IQueuedEmailService queuedEmailService,
                                IEmailAccountService emailAccountService,
                                ISitemapGenerator sitemapGenerator,
                                IThemeContext themeContext,
                                IThemeProvider themeProvider,
                                IForumService forumService,
                                IGenericAttributeService genericAttributeService,
                                IWebHelper webHelper,
                                IPermissionService permissionService,
                                ICacheManager cacheManager,
                                ICustomerActivityService customerActivityService,
                                IVendorService vendorService,
                                IContactUsService contactUsService,
                                CustomerSettings customerSettings,
                                TaxSettings taxSettings,
                                CatalogSettings catalogSettings,
                                StoreInformationSettings storeInformationSettings,
                                EmailAccountSettings emailAccountSettings,
                                CommonSettings commonSettings,
                                BlogSettings blogSettings,
                                NewsSettings newsSettings,
                                ForumSettings forumSettings,
                                LocalizationSettings localizationSettings,
                                CaptchaSettings captchaSettings,
                                VendorSettings vendorSettings)
        {
            this._categoryService         = categoryService;
            this._productService          = productService;
            this._manufacturerService     = manufacturerService;
            this._topicService            = topicService;
            this._languageService         = languageService;
            this._currencyService         = currencyService;
            this._localizationService     = localizationService;
            this._workContext             = workContext;
            this._storeContext            = storeContext;
            this._queuedEmailService      = queuedEmailService;
            this._emailAccountService     = emailAccountService;
            this._sitemapGenerator        = sitemapGenerator;
            this._themeContext            = themeContext;
            this._themeProvider           = themeProvider;
            this._forumservice            = forumService;
            this._genericAttributeService = genericAttributeService;
            this._webHelper               = webHelper;
            this._permissionService       = permissionService;
            this._cacheManager            = cacheManager;
            this._customerActivityService = customerActivityService;
            this._vendorService           = vendorService;
            this._contactUsService        = contactUsService;

            this._customerSettings         = customerSettings;
            this._taxSettings              = taxSettings;
            this._catalogSettings          = catalogSettings;
            this._storeInformationSettings = storeInformationSettings;
            this._emailAccountSettings     = emailAccountSettings;
            this._commonSettings           = commonSettings;
            this._blogSettings             = blogSettings;
            this._newsSettings             = newsSettings;
            this._forumSettings            = forumSettings;
            this._localizationSettings     = localizationSettings;
            this._captchaSettings          = captchaSettings;
            this._vendorSettings           = vendorSettings;
        }
 public ContactController(IContactUsService objContactUsService)
 {
     this.ObjContactUsService = objContactUsService;
 }
示例#37
0
 public CustomerController(ICustomerService customerService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ICustomerReportService customerReportService, 
     IDateTimeHelper dateTimeHelper,
     ILocalizationService localizationService,
     IRewardPointsService rewardPointsService,
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings, 
     RewardPointsSettings rewardPointsSettings,
     ICountryService countryService, 
     IStateProvinceService stateProvinceService, 
     IAddressService addressService,
     CustomerSettings customerSettings,
     ITaxService taxService, 
     IWorkContext workContext,
     IVendorService vendorService,
     IStoreContext storeContext,
     IPriceFormatter priceFormatter,
     IOrderService orderService, 
     IExportManager exportManager,
     ICustomerActivityService customerActivityService,
     IPriceCalculationService priceCalculationService,
     IProductAttributeFormatter productAttributeFormatter,
     IPermissionService permissionService, 
     IQueuedEmailService queuedEmailService,
     EmailAccountSettings emailAccountSettings,
     IEmailAccountService emailAccountService, 
     ForumSettings forumSettings,
     IForumService forumService, 
     IOpenAuthenticationService openAuthenticationService,
     AddressSettings addressSettings,
     CommonSettings commonSettings,
     IStoreService storeService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IAffiliateService affiliateService,
     IWorkflowMessageService workflowMessageService,
     IBackInStockSubscriptionService backInStockSubscriptionService,
     IContactUsService contactUsService)
 {
     this._customerService = customerService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerReportService = customerReportService;
     this._dateTimeHelper = dateTimeHelper;
     this._localizationService = localizationService;
     this._rewardPointsService = rewardPointsService;
     this._dateTimeSettings = dateTimeSettings;
     this._taxSettings = taxSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._addressService = addressService;
     this._customerSettings = customerSettings;
     this._commonSettings = commonSettings;
     this._taxService = taxService;
     this._workContext = workContext;
     this._vendorService = vendorService;
     this._storeContext = storeContext;
     this._priceFormatter = priceFormatter;
     this._orderService = orderService;
     this._exportManager = exportManager;
     this._customerActivityService = customerActivityService;
     this._priceCalculationService = priceCalculationService;
     this._productAttributeFormatter = productAttributeFormatter;
     this._permissionService = permissionService;
     this._queuedEmailService = queuedEmailService;
     this._emailAccountSettings = emailAccountSettings;
     this._emailAccountService = emailAccountService;
     this._forumSettings = forumSettings;
     this._forumService = forumService;
     this._openAuthenticationService = openAuthenticationService;
     this._addressSettings = addressSettings;
     this._storeService = storeService;
     this._customerAttributeParser = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._addressAttributeParser = addressAttributeParser;
     this._addressAttributeService = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._affiliateService = affiliateService;
     this._workflowMessageService = workflowMessageService;
     this._backInStockSubscriptionService = backInStockSubscriptionService;
     this._contactUsService = contactUsService;
 }
示例#38
0
 public ContactUsController(IContactUsService contactUsService, ILogger <BaseController> logger) : base(logger)
 {
     this.contactUsService = contactUsService;
 }