public EmployeeController(IEmployeeService employeeService,
                           IPersonService personService,
                           IBusinessEntityAddressService businessEntityAddressService,
                           IBusinessEntityContactService businessEntityContactService,
                           IPhoneService phoneService,
                           IAddressService addressService,
                           IAddressTypeService addressTypeService,
                           IPhoneTypeService phoneTypeService,
                           IContactTypeService contactTypeService,
                           IBusinessEntityService businessEntityService,
                           IUnitOfWorkAsync unitOfWork)
 {
     this.businessEntityService        = businessEntityService;
     this.employeeService              = employeeService;
     this.unitOfWork                   = unitOfWork;
     this.addressService               = addressService;
     this.personService                = personService;
     this.businessEntityContactService = businessEntityContactService;
     this.businessEntityAddressService = businessEntityAddressService;
     this.personService                = personService;
     this.phoneService                 = phoneService;
     this.addressTypeService           = addressTypeService;
     this.phoneTypeService             = phoneTypeService;
     this.contactTypeService           = contactTypeService;
 }
예제 #2
0
 public AbstractBusinessEntityAddressController(
     ApiSettings settings,
     ILogger <AbstractBusinessEntityAddressController> logger,
     ITransactionCoordinator transactionCoordinator,
     IBusinessEntityAddressService businessEntityAddressService,
     IApiBusinessEntityAddressModelMapper businessEntityAddressModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.BusinessEntityAddressService     = businessEntityAddressService;
     this.BusinessEntityAddressModelMapper = businessEntityAddressModelMapper;
 }
예제 #3
0
        protected virtual IEnumerable <BusinessEntityAddress_ReadListOutput> ReadList()
        {
            IBusinessEntityAddressService svcBusinessEntityAddress = DI.Resolve <IBusinessEntityAddressService>();
            object nullParamReadList = null; // TODO: make sure input parameters are defined as data object properties
            IEnumerable <BusinessEntityAddress_ReadListOutput> outReadList = svcBusinessEntityAddress.ReadList((int)nullParamReadList);

            if (svcBusinessEntityAddress is IDisposable)
            {
                ((IDisposable)svcBusinessEntityAddress).Dispose();
            }
            return(outReadList);
        }
예제 #4
0
            protected override IEnumerable <BusinessEntityAddress_ReadListOutput> ReadList()
            {
                IBusinessEntityAddressService svc = DI.Resolve <IBusinessEntityAddressService>();
                int businessEntityId = customer.StoreIdProperty.Value == null ?
                                       customer.PersonIdProperty.Value.Value : customer.StoreIdProperty.Value.Value;
                IEnumerable <BusinessEntityAddress_ReadListOutput> addrList = svc.ReadList(businessEntityId);

                if (svc is IDisposable)
                {
                    ((IDisposable)svc).Dispose();
                }
                return(addrList);
            }
예제 #5
0
 public BusinessEntityAddressController(
     ApiSettings settings,
     ILogger <BusinessEntityAddressController> logger,
     ITransactionCoordinator transactionCoordinator,
     IBusinessEntityAddressService businessEntityAddressService,
     IApiBusinessEntityAddressModelMapper businessEntityAddressModelMapper
     )
     : base(settings,
            logger,
            transactionCoordinator,
            businessEntityAddressService,
            businessEntityAddressModelMapper)
 {
     this.BulkInsertLimit = 250;
     this.MaxLimit        = 1000;
     this.DefaultLimit    = 250;
 }
 public BusinessEntityAddressController(ErrorList errorList, ErrorParser errorParser, IBusinessEntityAddressService service)
     : base(errorList, errorParser)
 {
     svc = service;
 }
 public BusinessEntityAddressController(ErrorList errorList, ErrorParser errorParser, IBusinessEntityAddressService service)
 {
     currentErrors = errorList;
     errorsParser  = errorParser;
     svc           = service;
 }