public SuggestionController(ISuggestionLogic suggestionLogic, IUserLogic userLogic,
                             IConfiguration configuration, ILoggerFactory loggerFactory, IWebHostEnvironment env) : base(configuration, loggerFactory)
 {
     this.suggestionLogic = suggestionLogic;
     this.userLogic       = userLogic;
     this.env             = env;
 }
Example #2
0
 public HomeController(IConfiguration configuration, ILoggerFactory loggerFactory,
                       ICategoryLogic categoryLogic, IDocumentLogic documentLogic, ISuggestionLogic suggestionLogic) : base(configuration, loggerFactory)
 {
     this.categoryLogic   = categoryLogic;
     this.documentLogic   = documentLogic;
     this.suggestionLogic = suggestionLogic;
 }
 public DocumentController(IDocumentLogic documentLogic, ICategoryLogic categoryLogic, ISuggestionLogic suggestionLogic,
                           IConfiguration configuration, ILoggerFactory loggerFactory, IWebHostEnvironment env) : base(configuration, loggerFactory)
 {
     this.documentLogic   = documentLogic;
     this.categoryLogic   = categoryLogic;
     this.suggestionLogic = suggestionLogic;
     this.env             = env;
 }
 public AccountController(IUserLogic userLogic, ISuggestionLogic suggestionLogic,
                          IConfiguration configuration, ILoggerFactory loggerFactory,
                          ILDAPAuthenticationService lDAPAuthenticationService) : base(configuration, loggerFactory)
 {
     this.userLogic       = userLogic;
     this.suggestionLogic = suggestionLogic;
     authService          = lDAPAuthenticationService;
 }
 public UserController(IUserLogic userLogic, ISuggestionLogic suggestionLogic,
                       IConfiguration configuration, ILoggerFactory loggerFactory) : base(configuration, loggerFactory)
 {
     this.userLogic       = userLogic;
     this.suggestionLogic = suggestionLogic;
 }
Example #6
0
 public CategoryController(ICategoryLogic categoryLogic, ISuggestionLogic suggestionLogic,
                           IConfiguration configuration, ILoggerFactory loggerFactory) : base(configuration, loggerFactory)
 {
     this.categoryLogic   = categoryLogic;
     this.suggestionLogic = suggestionLogic;
 }
Example #7
0
        public async Task Refresh(ISuggestionLogic suggestionLogic, int limit, string mdiaFolderPath)
        {
            UnReadedSuggestionCount = await suggestionLogic.UnReadCountAsync();

            SuggestionModels = await suggestionLogic.TopSuggestions(limit, mdiaFolderPath);
        }
Example #8
0
 public SuggestionsController(ISuggestionLogic suggestionLogic)
 {
     _suggestionLogic = suggestionLogic;
 }