Пример #1
0
 public TenantLeaseController(IRepository <TenantLease> tenantLeaseRepository,
                              IRepository <TenantLeasePaymentSchedule> tenantLeasePaymentScheduleRepository,
                              IRepository <TenantLeaseCharge> tenantLeaseChargeRepository,
                              IRepository <TenantPayment> tenantPaymentRepository,
                              IRepository <Assignment> assignmentRepository,
                              IRepository <AssignmentHistory> assignmentHistoryRepository,
                              ITenantLeaseService tenantLeaseService,
                              ITenantPaymentService tenantPaymentService,
                              IAutoNumberService autoNumberService,
                              IDateTimeHelper dateTimeHelper,
                              ILocalizationService localizationService,
                              IPermissionService permissionService,
                              HttpContextBase httpContext,
                              IWorkContext workContext,
                              IDbContext dbContext)
 {
     this._tenantLeaseRepository = tenantLeaseRepository;
     this._tenantLeasePaymentScheduleRepository = tenantLeasePaymentScheduleRepository;
     this._tenantLeaseChargeRepository          = tenantLeaseChargeRepository;
     this._tenantPaymentRepository     = tenantPaymentRepository;
     this._assignmentRepository        = assignmentRepository;
     this._assignmentHistoryRepository = assignmentHistoryRepository;
     this._localizationService         = localizationService;
     this._tenantLeaseService          = tenantLeaseService;
     this._tenantPaymentService        = tenantPaymentService;
     this._autoNumberService           = autoNumberService;
     this._dateTimeHelper    = dateTimeHelper;
     this._permissionService = permissionService;
     this._httpContext       = httpContext;
     this._workContext       = workContext;
     this._dbContext         = dbContext;
 }
 public TenantPaymentJob(IRepository <TenantPayment> tenantPaymentRepository,
                         IRepository <TenantLease> tenantLeaseRepository,
                         ITenantLeaseService tenantLeaseService)
 {
     this._tenantPaymentRepository = tenantPaymentRepository;
     this._tenantLeaseRepository   = tenantLeaseRepository;
     this._tenantLeaseService      = tenantLeaseService;
 }