Пример #1
0
        public AdminController(
            ISampleEntityCategoriesService sampleEntityCategoriesService,
            ISampleEntityLabelsService sampleEntityLabelsService,
            IHtmlLocalizer <AdminController> htmlLocalizer,
            IStringLocalizer <AdminController> stringLocalizer,
            ISampleCategoriesService sampleCategoriesService,
            IViewProviderManager <DemoSettings> viewProvider,
            ISampleEntityTagsService sampleEntityTagsService,
            ISampleEntitiesService sampleEntitiesService,
            ISampleLabelsService sampleLabelsService,
            ISampleUsersService sampleUsersService,
            ISampleTagsService sampleTagsService,
            IBreadCrumbManager breadCrumbManager,
            IAlerter alerter)
        {
            _sampleEntityCategoriesService = sampleEntityCategoriesService;
            _sampleEntityLabelsService     = sampleEntityLabelsService;
            _sampleEntityTagsService       = sampleEntityTagsService;
            _sampleCategoriesService       = sampleCategoriesService;
            _sampleEntitiesService         = sampleEntitiesService;
            _sampleLabelsService           = sampleLabelsService;
            _sampleUsersService            = sampleUsersService;
            _sampleTagsService             = sampleTagsService;
            _breadCrumbManager             = breadCrumbManager;
            _viewProvider = viewProvider;
            _alerter      = alerter;

            T = htmlLocalizer;
            S = stringLocalizer;
        }
Пример #2
0
 public SampleEntitiesService(
     IEntityReplyManager <EntityReply> entityReplyManager,
     ISampleUsersService sampleUsersService,
     IEntityManager <Entity> entityManager,
     IPlatoUserStore <User> platoUserStore,
     IContextFacade contextFacade,
     IFeatureFacade featureFacade,
     IDbHelper dbHelper)
 {
     _entityReplyManager = entityReplyManager;
     _sampleUsersService = sampleUsersService;
     _platoUserStore     = platoUserStore;
     _entityManager      = entityManager;
     _contextFacade      = contextFacade;
     _featureFacade      = featureFacade;
     _dbHelper           = dbHelper;
     _random             = new Random();
 }