Esempio n. 1
0
 public NewsController(INewsService NewsService,
                       INewsCategoryService NewsCategoryService)
 {
     _NewsService         = NewsService;
     _NewsCategoryService = NewsCategoryService;
     AddPageCrumbs("新闻", "/News");
 }
Esempio n. 2
0
 public PersonalBlogController(INewsItemService newsItemService, IPrincipalResolver principalResolver, IBlogService blogService, INewsCategoryService newsCategoryService)
 {
     _newsItemService     = newsItemService;
     _principalResolver   = principalResolver;
     _blogService         = blogService;
     _newsCategoryService = newsCategoryService;
 }
 public HomeController(IProductCategoryService productCategoryService, IProductService productService, IContactService contactService, IBrandService brandService, INewsCategoryService newsCategoryService)
 {
     this.productCategoryService = productCategoryService;
     this.productService         = productService;
     this.contactService         = contactService;
     this.brandService           = brandService;
     this.newsCategoryService    = newsCategoryService;
 }
Esempio n. 4
0
        public NewsItemService(ISearchService searchService, INewsCategoryService categoryService, IBlogService blogService, IHeartService heartService)
        {
            _searchService   = searchService;
            _categoryService = categoryService;
            _blogService     = blogService;
            _heartService    = heartService;

            InitCache("TagMemoryCache");
            CacheExpirationInMinutes = 30;
        }
Esempio n. 5
0
        public NewsController(INewsCategoryService newsCategoryService, INewsService newsService
            )
        {
            this._newsCategoryService = newsCategoryService;
            this._newsService = newsService;

            this.LanguageId = int.Parse(Cookies.ReadCookie("PenDesign:Language", "129"));

            ItemPerPage = AppSettings.ItemsPerPage;
        }
Esempio n. 6
0
        public NewsController(INewsCategoryService newsCategoryService, INewsService newsService
                              )
        {
            this._newsCategoryService = newsCategoryService;
            this._newsService         = newsService;

            this.LanguageId = int.Parse(Cookies.ReadCookie("PenDesign:Language", "129"));

            ItemPerPage = AppSettings.ItemsPerPage;
        }
Esempio n. 7
0
        public HomeController(IConfigService configService, IBannerService bannerService,
                              IBannerMappingService bannerMappingService, IGroupControlService groupControlService, IControlService controlService,
                              IProjectService projectService, INewsService newsService, INewsCategoryService newsCategoryService,
                              IOtherPageSEOService otherPageSeoService)
        {
            this._configService        = configService;
            this._bannerService        = bannerService;
            this._bannerMappingService = bannerMappingService;
            this._groupControlService  = groupControlService;
            this._controlService       = controlService;
            this.configModel           = _configService.GetAll().SingleOrDefault();
            this._projectService       = projectService.GetAll();
            this._newsService          = newsService;
            this._newsCategoryService  = newsCategoryService;
            this._otherPageSeoService  = otherPageSeoService;

            this.LanguageId = int.Parse(Cookies.ReadCookie("PenDesign:Language", "129"));
        }
Esempio n. 8
0
        public HomeController(IConfigService configService, IBannerService bannerService,
            IBannerMappingService bannerMappingService, IGroupControlService groupControlService, IControlService controlService,
            IProjectService projectService, INewsService newsService, INewsCategoryService newsCategoryService,
            IOtherPageSEOService otherPageSeoService)
        {
            this._configService = configService;
            this._bannerService = bannerService;
            this._bannerMappingService = bannerMappingService;
            this._groupControlService = groupControlService;
            this._controlService = controlService;
            this.configModel = _configService.GetAll().SingleOrDefault();
            this._projectService = projectService.GetAll();
            this._newsService = newsService;
            this._newsCategoryService = newsCategoryService;
            this._otherPageSeoService = otherPageSeoService;

            this.LanguageId = int.Parse(Cookies.ReadCookie("PenDesign:Language", "129"));
        }
Esempio n. 9
0
 public NewsCategoryApiController(IRepository <NewsCategory> categoryRepository, INewsCategoryService categoryService)
 {
     _categoryRepository = categoryRepository;
     _categoryService    = categoryService;
 }
Esempio n. 10
0
 public NewsController(INewsCategoryService newsCategoryService, INewsService newsService)
 {
     _newsCategoryService = newsCategoryService;
     _newsService         = newsService;
 }
 public NewsCategoryController(ILogErrorService logErrorService, INewsCategoryService newsCategoryService) : base(logErrorService)
 {
     this.logErrorService     = logErrorService;
     this.newsCategoryService = newsCategoryService;
 }
Esempio n. 12
0
 public NewsCategoryController(INewsCategoryService NewsCategoryService)
 {
     _newsCategoryService = NewsCategoryService;
 }
Esempio n. 13
0
 public HotNewsService(DatabaseContext context, INewsCategoryService newsCategoryService)
     : base(context)
 {
     _newsCategoryService = newsCategoryService;
 }
Esempio n. 14
0
 public NewsService(IUnitOfWork unitOfWork, INewsCategoryService newsCategoryService)
 {
     _unitOfWork = unitOfWork;
     _newsCategoryService = newsCategoryService;
 }
Esempio n. 15
0
 public NewsController(INewsItemService newsItemService, INewsCategoryService newsCategoryService, IBlogService blogService)
 {
     _newsItemService     = newsItemService;
     _newsCategoryService = newsCategoryService;
     _blogService         = blogService;
 }
Esempio n. 16
0
 public NewsCategoryApiController(INewsCategoryService categoryService, ILogService logService)
 {
     _categoryService = categoryService;
     _logService      = logService;
 }
Esempio n. 17
0
        public NewsCategoryManageModel()
        {
            _categoryService = HostContainer.GetInstance <INewsCategoryService>();

            PossibleParents = _categoryService.GetPossibleParents();
        }
Esempio n. 18
0
 public NewsInfoController(INewsInfoService NewsInfoService, IImageInfoService imageInfoService, INewsCategoryService newsCategoryService)
 {
     _newsInfoService     = NewsInfoService;
     _newsCategoryService = newsCategoryService;
     _imageInfoService    = imageInfoService;
 }
 public NewsCategoriesController(IUsersService users, INewsCategoryService newsCategries)
     : base(users)
 {
     this.newsCategries = newsCategries;
 }
Esempio n. 20
0
 public NewsService(DatabaseContext context, INewsCategoryService newsCategoryService, ICategoryService categoryService, INewsSeenService newsSeenService) : base(context)
 {
     _newsCategoryService = newsCategoryService;
     _categoryService     = categoryService;
     _newsSeenService     = newsSeenService;
 }
 public NewsCategoryDetailsResolver()
 {
     _newsCategoryService   = HostContainer.GetInstance <INewsCategoryService>();
     _widgetTemplateService = HostContainer.GetInstance <IWidgetTemplateService>();
 }
 public NewsController(INewsService newsService, INewsCategoryService newsCategoryService)
 {
     this.newsCategoryService = newsCategoryService;
     this.newsService         = newsService;
 }
Esempio n. 23
0
 public ActionResult GetNewsCates([FromServices] INewsCategoryService newsCategoryService, string currentId, string parentId)
 {
     //var newsCateServices = CoreContextProvider.GetService<INewsCategoryService>();
     return(Content(newsCategoryService.GetCateList(currentId, parentId).ToJson()));
 }
Esempio n. 24
0
 public CategoryAdminController(INewsCategoryService service)
 {
     _service = service;
 }