コード例 #1
0
 public AbstractPersonCreditCardController(
     ApiSettings settings,
     ILogger <AbstractPersonCreditCardController> logger,
     ITransactionCoordinator transactionCoordinator,
     IPersonCreditCardService personCreditCardService,
     IApiPersonCreditCardModelMapper personCreditCardModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.PersonCreditCardService     = personCreditCardService;
     this.PersonCreditCardModelMapper = personCreditCardModelMapper;
 }
コード例 #2
0
        protected virtual IEnumerable <PersonCreditCard_ReadListOutput> ReadList()
        {
            IPersonCreditCardService svcPersonCreditCard = DI.Resolve <IPersonCreditCardService>();
            object nullParamReadList = null; // TODO: make sure input parameters are defined as data object properties
            IEnumerable <PersonCreditCard_ReadListOutput> outReadList = svcPersonCreditCard.ReadList((int)nullParamReadList);

            if (svcPersonCreditCard is IDisposable)
            {
                ((IDisposable)svcPersonCreditCard).Dispose();
            }
            return(outReadList);
        }
コード例 #3
0
            protected override IEnumerable <PersonCreditCard_ReadListOutput> ReadList()
            {
                IPersonCreditCardService svc = DI.Resolve <IPersonCreditCardService>();
                IEnumerable <PersonCreditCard_ReadListOutput> ccList = svc.ReadList(
                    salesOrder.CustomerObject.PersonIdProperty.Value.Value);

                if (svc is IDisposable)
                {
                    ((IDisposable)svc).Dispose();
                }
                return(ccList);
            }
コード例 #4
0
 public PersonCreditCardController(
     ApiSettings settings,
     ILogger <PersonCreditCardController> logger,
     ITransactionCoordinator transactionCoordinator,
     IPersonCreditCardService personCreditCardService,
     IApiPersonCreditCardModelMapper personCreditCardModelMapper
     )
     : base(settings,
            logger,
            transactionCoordinator,
            personCreditCardService,
            personCreditCardModelMapper)
 {
     this.BulkInsertLimit = 250;
     this.MaxLimit        = 1000;
     this.DefaultLimit    = 250;
 }
コード例 #5
0
 public PersonCreditCardController(ErrorList errorList, ErrorParser errorParser, IPersonCreditCardService service)
     : base(errorList, errorParser)
 {
     svc = service;
 }
コード例 #6
0
 public PersonCreditCardController(ErrorList errorList, ErrorParser errorParser, IPersonCreditCardService service)
 {
     currentErrors = errorList;
     errorsParser  = errorParser;
     svc           = service;
 }