public DocumentAccessHistoryController(ILogger <DocumentAccessHistoryController> logger, IOptions <Settings> settings) : base(logger) { var repository = new DocumentAccessHistoryRepository(settings); _documentAccessHistoryService = new DocumentAccessHistoryService(repository); }
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; }