public RenterController(IOptions <RoomForRentOptions> optionsAccessor, IRepositoryWrapper repositoryWrapper) { this.repositoryWrapper = repositoryWrapper; this.optionsAccessor = optionsAccessor; this.ItemsPerPage = optionsAccessor.Value.ItemsPerPage; this.renterRepository = repositoryWrapper.RenterRepository; renterService = new RenterService(renterRepository); this.transactionService = new RenterLeaserTransactionService(repositoryWrapper); }
public LeaserController(IOptions <RoomForRentOptions> optionsAccessor, IRepositoryWrapper repositoryWrapper) { this.repositoryWrapper = repositoryWrapper; leaserService = new LeaserService(this.repositoryWrapper.LeaserRepository); transactionService = new RenterLeaserTransactionService(this.repositoryWrapper); this.optionsAccessor = optionsAccessor; TransactionRepository = this.repositoryWrapper.TransactionRepository; this.ItemsPerPage = this.optionsAccessor.Value.ItemsPerPage; }
public HomeController(IRepositoryWrapper repositoryWrapper) { this.transactionRepository = repositoryWrapper.TransactionRepository; renterLeaserTransactionService = new RenterLeaserTransactionService(repositoryWrapper); }
public ActiveTransactionsViewComponent(IRepositoryWrapper repositoryWrapper) { service = new RenterLeaserTransactionService(repositoryWrapper); }