public DocumentAccessHistoryController(ILogger <DocumentAccessHistoryController> logger,
                                               IOptions <Settings> settings) : base(logger)
        {
            var repository = new DocumentAccessHistoryRepository(settings);

            _documentAccessHistoryService = new DocumentAccessHistoryService(repository);
        }
예제 #2
0
        public DocumentController(ILogger <DocumentController> logger, IOptions <Settings> settings) : base(logger)
        {
            var repository       = new DocumentRepository(settings);
            var accessrepository = new DocumentAccessHistoryRepository(settings);

            _documentService = new DocumentService(repository, accessrepository);
            fileUploadPath   = settings.Value.FileUploadPath;
        }