public static LenderRepository GetLenderRepository(IUnitOfWork unitOfWork) { var repository = new LenderRepository(); repository.UnitOfWork = unitOfWork; return repository; }
public LenderController(LenderRepository lenderRepo) { this.lenderRepo = lenderRepo; }