public CompraController(IOptions <AppSettings> databaseSettings, ILoggerFactory loggerFactory) { _beneficiarioGateway = new BeneficiarioGateway(databaseSettings, loggerFactory); _supermercadoGateway = new SupermercadoGateway(databaseSettings); _compraGateway = new CompraGateway(databaseSettings, loggerFactory); _logger = loggerFactory.CreateLogger <CompraController>(); }
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 ReporteController(IOptions <AppSettings> databaseSettings, ILoggerFactory loggerFactory, IHostingEnvironment hostingEnvironment) { _compraGateway = new CompraGateway(databaseSettings, loggerFactory); _logger = loggerFactory.CreateLogger <ReporteController>(); _hostingEnvironment = hostingEnvironment; }