public PaymentStatusController(
     ApiDbContext apiDbContext,
     IPaymentStatusService paymentStatusService)
 {
     _apiDbContext         = apiDbContext;
     _paymentStatusService = paymentStatusService;
 }
示例#2
0
 public RepairTicketController(
     IAppUserService AppUserService,
     ICustomerService CustomerService,
     IItemService ItemService,
     IOrderCategoryService OrderCategoryService,
     ICustomerSalesOrderService CustomerSalesOrderService,
     IDirectSalesOrderService DirectSalesOrderService,
     IPaymentStatusService PaymentStatusService,
     IRepairStatusService RepairStatusService,
     IRepairTicketService RepairTicketService,
     ICurrentContext CurrentContext
     , IHttpContextAccessor httpContextAccessor, DataContext _DataContext
     ) : base(httpContextAccessor, _DataContext)
 {
     this.AppUserService            = AppUserService;
     this.CustomerService           = CustomerService;
     this.ItemService               = ItemService;
     this.OrderCategoryService      = OrderCategoryService;
     this.CustomerSalesOrderService = CustomerSalesOrderService;
     this.DirectSalesOrderService   = DirectSalesOrderService;
     this.PaymentStatusService      = PaymentStatusService;
     this.RepairStatusService       = RepairStatusService;
     this.RepairTicketService       = RepairTicketService;
     this.CurrentContext            = CurrentContext;
 }
示例#3
0
 public ProcessPayment(IPaymentService paymentService, IPaymentStatusService paymentStatusService, ILogWriter logWriter, IMapper mapper, ICheapPaymentGateway cheapPaymentGateway, IExpensivePaymentGateway expensivePaymentGateway, IPremiumPaymentGateway premiumPaymentGateway, IConfiguration config)
 {
     _paymentService       = paymentService;
     _paymentStatusService = paymentStatusService;
     _logWriter            = logWriter;
     _mapper           = mapper;
     _cheapPayment     = cheapPaymentGateway;
     _expensivePayment = expensivePaymentGateway;
     _premium          = premiumPaymentGateway;
     _config           = config;
 }
        public PaymentService(IPaymentStatusService paymentStatusService, IUnitOfWorkBase <PaymentContext> unitOfWork, ILogger <PaymentService> logger,
                              IExpensivePaymentGateway expensivePaymentGateway, ICheapPaymentGateway cheapPaymentGateway, IPremiumPaymentService premiumPaymentService)
        {
            PaymentStatusService = paymentStatusService;

            UnitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));

            if (PaymentRepo == null)
            {
                PaymentRepo = UnitOfWork.GetRepository <Payment>();
            }

            ExpensivePaymentGateway = expensivePaymentGateway;
            CheapPaymentGateway     = cheapPaymentGateway;
            PremiumPaymentService   = premiumPaymentService;

            Logger = logger ?? throw new ArgumentNullException(nameof(logger));
        }
示例#5
0
 public OrderReportController(
     IAppUserService AppUserService,
     IOrganizationService OrganizationService,
     IPaymentStatusService PaymentStatusService,
     ICompanyService CompanyService,
     IOpportunityService OpportunityService,
     IOrderCategoryService OrderCategoryService,
     ICurrentContext CurrentContext,
     DataContext DataContext
     , IHttpContextAccessor httpContextAccessor, DataContext _DataContext
     ) : base(httpContextAccessor, _DataContext)
 {
     this.OrganizationService  = OrganizationService;
     this.AppUserService       = AppUserService;
     this.PaymentStatusService = PaymentStatusService;
     this.CompanyService       = CompanyService;
     this.OpportunityService   = OpportunityService;
     this.OrderCategoryService = OrderCategoryService;
     this.CurrentContext       = CurrentContext;
     this.DataContext          = DataContext;
 }
 public ServiceWrapper(
     IAddressService AddressService,
     ICustomerService CustomerService,
     IDepartmentService DepartmentService,
     IEquipmentService EquipmentService,
     IEquipmentCategoryService EquipmentCategoryService,
     IExpenseService ExpenseService,
     IExpenseTypeService ExpenseTypeService,
     IFactoryService FactoryService,
     IIncomeService IncomeService,
     IIncomeTypeService IncomeTypeService,
     IInvoiceService InvoiceService,
     IInvoiceTypeService InvoiceTypeService,
     IItemService ItemService,
     IItemCategoryService ItemCategoryService,
     IItemStatusService ItemStatusService,
     IPayableService PayableService,
     IPaymentStatusService PaymentStatusService,
     IPhoneService PhoneService,
     IProductionService ProductionService,
     IPurchaseService PurchaseService,
     IPurchaseTypeService PurchaseTypeService,
     IRecievableService RecievableService,
     IRoleService RoleService,
     ISalesService SalesService,
     IStaffService StaffService,
     IStockService StockService,
     IStockInService StockInService,
     IStockOutService StockOutService,
     ISupplierService SupplierService,
     ITransactionService TransactionService,
     ITransactionTypeService TransactionTypeService,
     IUserAuthInfoService UserAuthInfoService,
     IUserRoleService UserRoleService,
     IRepositoryWrapper repositoryWrapper,
     IMapper mapper,
     ILoggerManager loggerManager,
     IUtilService utilService,
     IApiResourceMappingService ApiResourceMappingService
     )
 {
     this._AddressService           = AddressService;
     this._CustomerService          = CustomerService;
     this._DepartmentService        = DepartmentService;
     this._EquipmentService         = EquipmentService;
     this._EquipmentCategoryService = EquipmentCategoryService;
     this._ExpenseService           = ExpenseService;
     this._ExpenseTypeService       = ExpenseTypeService;
     this._FactoryService           = FactoryService;
     this._IncomeService            = IncomeService;
     this._IncomeTypeService        = IncomeTypeService;
     this._InvoiceService           = InvoiceService;
     this._InvoiceTypeService       = InvoiceTypeService;
     this._ItemService            = ItemService;
     this._ItemCategoryService    = ItemCategoryService;
     this._ItemStatusService      = ItemStatusService;
     this._PayableService         = PayableService;
     this._PaymentStatusService   = PaymentStatusService;
     this._PhoneService           = PhoneService;
     this._ProductionService      = ProductionService;
     this._PurchaseService        = PurchaseService;
     this._PurchaseTypeService    = PurchaseTypeService;
     this._RecievableService      = RecievableService;
     this._RoleService            = RoleService;
     this._SalesService           = SalesService;
     this._StaffService           = StaffService;
     this._StockService           = StockService;
     this._StockInService         = StockInService;
     this._StockOutService        = StockOutService;
     this._SupplierService        = SupplierService;
     this._TransactionService     = TransactionService;
     this._TransactionTypeService = TransactionTypeService;
     this._UserAuthInfoService    = UserAuthInfoService;
     this._UserRoleService        = UserRoleService;
     this._repositoryWrapper      = repositoryWrapper;
     this._mapper                    = mapper;
     this._loggerManager             = loggerManager;
     this._utilService               = utilService;
     this._ApiResourceMappingService = ApiResourceMappingService;
 }