Пример #1
0
        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);
        }
Пример #2
0
        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;
        }
Пример #3
0
 public HomeController(IRepositoryWrapper repositoryWrapper)
 {
     this.transactionRepository     = repositoryWrapper.TransactionRepository;
     renterLeaserTransactionService = new RenterLeaserTransactionService(repositoryWrapper);
 }
 public ActiveTransactionsViewComponent(IRepositoryWrapper repositoryWrapper)
 {
     service = new RenterLeaserTransactionService(repositoryWrapper);
 }