Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public PersonSaveRepository(IPersonSaveContext contextRet)
 {
     _contextRet = contextRet;
 }