public EditorController(IContentManagerService contentManagerService, IContentCategoryRepository contentCategoryRepository, IRegisteredUserRepository registeredUserRepository, IFashionFlavorRepository fashionFlavorRepository)
 {
     this.contentManagerService     = contentManagerService;
     this.registeredUserRepository  = registeredUserRepository;
     this.fashionFlavorRepository   = fashionFlavorRepository;
     this.contentCategoryRepository = contentCategoryRepository;
 }
 public EntriesController()
 {
     _signedUser          = new Account();
     _accountRepo         = new AccountRepository(new AccountManageService(), new MailingService());
     _entryRepo           = new EntryRepository(new EntryManageService());
     _contentCategoryRepo = new ContentCategoryRepository(new ContentCategoryManageService());
     _paragraphRepo       = new ParagraphRepository();
 }
 public GalleriesController()
 {
     _accountRepo       = new AccountRepository(new AccountManageService(), new MailingService());
     _fileUploadService = new FileUploadService(new FileSecurityValidator());
     _galleryRepo       = new GalleryRepository(new FileSecurityValidator(), _fileUploadService);
     _categoryRepo      = new ContentCategoryRepository(new ContentCategoryManageService());
     _signedUser        = new Account();
 }
示例#4
0
 public CmsController(IContentCategoryRepository categoryRepository,
                      IContentArticleRepository articleRepository,
                      BanobatDbContext dbContext,
                      IMapper mapper,
                      IUploadService uploadService,
                      INotificationService notificationService)
 {
     _categoryRepository  = categoryRepository;
     _articleRepository   = articleRepository;
     _dbContext           = dbContext;
     _mapper              = mapper;
     _uploadService       = uploadService;
     _notificationService = notificationService;
 }
示例#5
0
 public GridController(IContentManagerService contentManagerService, IContentCategoryRepository contentCategoryRepository)
 {
     this.contentManagerService     = contentManagerService;
     this.contentCategoryRepository = contentCategoryRepository;
 }
		public ContentCategoriesController(IContentCategoryRepository repo) 
		{
			repository = repo;
		}
 public ContentCategoriesController()
 {
     _repo = new ContentCategoryRepository(new ContentCategoryManageService());
 }