예제 #1
0
        public HomeController(IContactUsService contactUsService, IOptionsSnapshot <ShowingSettingSite> settings)
        {
            _contactUsService = contactUsService;
            _contactUsService.CheckArgumentIsNull(nameof(_contactUsService));

            _settings = settings;
            _settings.CheckArgumentIsNull(nameof(_settings));
        }
        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));
        }
예제 #3
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));
        }
예제 #4
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));
        }