public CommentsAuthorization(IAuthorizationService authorizationService, IOptions <CommentsOptions> commentsOptions, OperationKeysContainer operationKeysContainer, DataBaseConnection db) { OperationKeys = operationKeysContainer; this.authorizationService = authorizationService; this.commentsOptions = commentsOptions.Value; this.db = db; }
public MaterialsAuthorization( IAuthorizationService authorizationService, IOptions <MaterialsOptions> materialsOptions, OperationKeysContainer operationKeysContainer, DataBaseConnection db) { this.authorizationService = authorizationService; this.materialsOptions = materialsOptions.Value; this.db = db; OperationKeys = operationKeysContainer; }