Пример #1
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));
        }
Пример #2
0
 public BrandsController(IBrandService brandService)
 {
     _brandService = brandService;
     _brandService.CheckArgumentIsNull(nameof(_brandService));
 }
Пример #3
0
 public BrandViewComponent(IBrandService brandService)
 {
     _brandService = brandService;
     _brandService.CheckArgumentIsNull(nameof(_brandService));
 }