Example #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));
        }
Example #2
0
 public MainStaticContentViewComponent(IStaticContentService staticContentService)
 {
     _staticContentService = staticContentService;
     _staticContentService.CheckArgumentIsNull(nameof(_staticContentService));
 }
 public StaticContentsController(IStaticContentService staticContentService)
 {
     _staticContentService = staticContentService;
     _staticContentService.CheckArgumentIsNull(nameof(_staticContentService));
 }