public PaymentsController(ILogger <PaymentsController> logger, IConfiguration configuration) { _logger = logger; string connectionString = configuration.GetConnectionString("DefaultConnection"); _iProductRetrieveContext = new ProductMssqlContext(connectionString); _productRetRepository = new ProductRetRepository(_iProductRetrieveContext); _iPersonRetContext = new PersonMssqlContext(connectionString); _personRetRepository = new PersonRetRepository(_iPersonRetContext); _iPersonSaveContext = new PersonMssqlContext(connectionString); _personSaveRepository = new PersonSaveRepository(_iPersonSaveContext); }
public PersonSaveRepository(IPersonSaveContext contextRet) { _contextRet = contextRet; }