public AbstractPersonCreditCardController( ApiSettings settings, ILogger <AbstractPersonCreditCardController> logger, ITransactionCoordinator transactionCoordinator, IPersonCreditCardService personCreditCardService, IApiPersonCreditCardModelMapper personCreditCardModelMapper ) : base(settings, logger, transactionCoordinator) { this.PersonCreditCardService = personCreditCardService; this.PersonCreditCardModelMapper = personCreditCardModelMapper; }
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); }
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); }
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; }
public PersonCreditCardController(ErrorList errorList, ErrorParser errorParser, IPersonCreditCardService service) : base(errorList, errorParser) { svc = service; }
public PersonCreditCardController(ErrorList errorList, ErrorParser errorParser, IPersonCreditCardService service) { currentErrors = errorList; errorsParser = errorParser; svc = service; }