public CompraDetalleController(IOptions <AppSettings> databaseSettings, ILoggerFactory loggerFactory) { _productoGateway = new ProductoGateway(databaseSettings); _compraGateway = new CompraGateway(databaseSettings, loggerFactory); _compraDetalleGateway = new CompraDetalleGateway(databaseSettings, loggerFactory); _afiliadoGateway = new AfiliadoGateway(databaseSettings, loggerFactory); _logger = loggerFactory.CreateLogger <CompraDetalleController>(); }
public BeneficiarioController(IOptions <AppSettings> databaseSettings, ILoggerFactory loggerFactory) { _beneficiarioGateway = new BeneficiarioGateway(databaseSettings, loggerFactory); _afiliadoGateway = new AfiliadoGateway(databaseSettings, loggerFactory); _logger = loggerFactory.CreateLogger <BeneficiarioController>(); }