public UnitOfWork(DbContext context) { this.context = context; Risks = new RiskRepository(context); Customers = new CustomerRepository(context); Mortgages = new MortgageRepository(context); MortgageCustomerAssignments = new MortgageCustomerAssignmentRepository(context); }
public void Initialize() { _databaseContext = new MortgageData.MortgageDataContext(); _objRepo = new MortgageRepository(); }
public MortgageController(IConfiguration configuration) { repo = new MortgageRepository(configuration); }