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; }
public AbstractBusinessEntityAddressController( ApiSettings settings, ILogger <AbstractBusinessEntityAddressController> logger, ITransactionCoordinator transactionCoordinator, IBusinessEntityAddressService businessEntityAddressService, IApiBusinessEntityAddressModelMapper businessEntityAddressModelMapper ) : base(settings, logger, transactionCoordinator) { this.BusinessEntityAddressService = businessEntityAddressService; this.BusinessEntityAddressModelMapper = businessEntityAddressModelMapper; }
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); }
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); }
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; }