public ContactManager(IAddressRepository addressRepository, IAddressTypeRepository addressTypeRepository, IPhoneRepository phoneRepository,
                              IPhoneTypeRepository phoneTypeRepository,IProfileAddressRepository profileAddressRepository, IProfilePhoneRepository profilePhoneRepository,
                              IProfileRepository profileRepository)
        {
            if (addressRepository == null)
                throw new ArgumentNullException("addressRepository");

            if (addressTypeRepository == null)
                throw new ArgumentNullException("addressTypeRepository");

            if (phoneRepository == null)
                throw new ArgumentNullException("phoneRepository");

            if (phoneTypeRepository == null)
                throw new ArgumentNullException("phoneTypeRepository");

            if (profileAddressRepository == null)
                throw new ArgumentNullException("profileAddressRepository");

            if (profilePhoneRepository == null)
                throw new ArgumentNullException("profilePhoneRepository");

            if (profileRepository == null)
                throw new ArgumentNullException("profileRepository");

            _addressRepository = addressRepository;
            _addressTypeRepository = addressTypeRepository;
            _phoneRepository = phoneRepository;
            _phoneTypeRepository = phoneTypeRepository;
            _profileAddressRepository = profileAddressRepository;
            _profilePhoneRepository = profilePhoneRepository;
            _profileRepository = profileRepository;
        }
Example #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="empRepository"></param>
 /// <param name="empStatusRepository"></param>
 /// <param name="companyRepository"></param>
 /// <param name="jobTypeRepository"></param>
 /// <param name="designationRepository"></param>
 /// <param name="desigGradeRepository"></param>
 /// <param name="departmentRepository"></param>
 /// <param name="workplaceRepository"></param>
 /// <param name="countryRepository"></param>
 /// <param name="regionRepository"></param>
 /// <param name="subRegionRepository"></param>
 /// <param name="cityRepository"></param>
 /// <param name="areaRepository"></param>
 /// <param name="phoneTypeRepository"></param>
 /// <param name="licenseTypeRepository"></param>
 /// <param name="operationRepository"></param>
 /// <param name="operationsWorkPlaceRepository"></param>
 public EmployeeService(IEmployeeRepository empRepository, IEmpStatusRepository empStatusRepository, ICompanyRepository companyRepository,
                        IJobTypeRepository jobTypeRepository, IDesignationRepository designationRepository, IDesignGradeRepository desigGradeRepository,
                        IDepartmentRepository departmentRepository, IWorkplaceRepository workplaceRepository, ICountryRepository countryRepository,
                        IRegionRepository regionRepository, ISubRegionRepository subRegionRepository, ICityRepository cityRepository,
                        IAreaRepository areaRepository, IPhoneTypeRepository phoneTypeRepository, ILicenseTypeRepository licenseTypeRepository,
                        IOperationRepository operationRepository, IOperationsWorkPlaceRepository operationsWorkPlaceRepository, IAddressTypeRepository addressTypeRepository,
                        IAddressRepository addressRepository, IPhoneRepository phoneRepository, IEmpJobProgRepository empJobProgRepository,
                        IEmpAuthOperationsWorkplaceRepository empAuthOperationsWorkplaceRepository)
 {
     employeeRepository        = empRepository;
     this.empStatusRepository  = empStatusRepository;
     this.addressRepository    = addressRepository;
     this.phoneRepository      = phoneRepository;
     this.empJobProgRepository = empJobProgRepository;
     this.empAuthOperationsWorkplaceRepository = empAuthOperationsWorkplaceRepository;
     this.companyRepository             = companyRepository;
     this.jobTypeRepository             = jobTypeRepository;
     this.designationRepository         = designationRepository;
     this.desigGradeRepository          = desigGradeRepository;
     this.departmentRepository          = departmentRepository;
     this.workplaceRepository           = workplaceRepository;
     this.regionRepository              = regionRepository;
     this.countryRepository             = countryRepository;
     this.subRegionRepository           = subRegionRepository;
     this.cityRepository                = cityRepository;
     this.areaRepository                = areaRepository;
     this.phoneTypeRepository           = phoneTypeRepository;
     this.licenseTypeRepository         = licenseTypeRepository;
     this.operationRepository           = operationRepository;
     this.operationsWorkPlaceRepository = operationsWorkPlaceRepository;
     this.addressTypeRepository         = addressTypeRepository;
 }
Example #3
0
 public CommonBLL(IGenderRepository genderRepository,
                  IMapper mapper,
                  ICitiesRepository CitiesRepository,
                  IPersonRelationTypeRepository personRelationTypeRepository,
                  IPhoneTypeRepository phoneTypeRepository)
 {
     this.genderRepository             = genderRepository;
     this.mapper                       = mapper;
     this.CitiesRepository             = CitiesRepository;
     this.personRelationTypeRepository = personRelationTypeRepository;
     this.phoneTypeRepository          = phoneTypeRepository;
 }
Example #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public WorkLocationService(IWorkLocationRepository workLocationRepository, ICompanyRepository companyRepository,
                            ICountryRepository countryRepository,
                            IRegionRepository regionRepository, ISubRegionRepository subRegionRepository, ICityRepository cityRepository,
                            IAreaRepository areaRepository, IPhoneTypeRepository phoneTypeRepository, IPhoneRepository phoneRepository, IAddressRepository addressRepository,
                            IAddressTypeRepository addressTypeRepository)
 {
     this.workLocationRepository = workLocationRepository;
     this.addressTypeRepository  = addressTypeRepository;
     this.companyRepository      = companyRepository;
     this.countryRepository      = countryRepository;
     this.regionRepository       = regionRepository;
     this.subRegionRepository    = subRegionRepository;
     this.cityRepository         = cityRepository;
     this.areaRepository         = areaRepository;
     this.phoneTypeRepository    = phoneTypeRepository;
     this.phoneRepository        = phoneRepository;
     this.addressRepository      = addressRepository;
 }
 public BusinessPartnerBaseDataService(ICompanyRepository companyRepository
                                       , IPaymentTermRepository paymentTermRepository
                                       , IBusinessLegalStatusRepository businessLegalStatusRepository
                                       , IBpRatingTypeRepository bpRatingTypeRepository
                                       , IBusinessPartnerRepository businessPartnerRepository
                                       , IEmployeeRepository employeeRepository
                                       , IOccupationTypeRepository occupationTypeRepository
                                       , IBusinessPartnerCompanyRepository businessPartnerCompanyRepository
                                       , ICountryRepository passportCountryRepository
                                       , IBusinessSegmentRepository businessSegmentRepository
                                       , IBusinessPartnerSubTypeRepository businessPartnerSubTypeRepository
                                       , IPhoneTypeRepository phoneTypeRepository
                                       , IAddressTypeRepository addressTypeRepository
                                       , IMarketingChannelRepository marketingChannelRepository
                                       , IBusinessPartnerRelationshipTypeRepository businessPartnerRelationshipTypeRepository
                                       , IRegionRepository regionRepository
                                       , ISubRegionRepository subRegionRepository
                                       , ICityRepository cityRepository
                                       , IAreaRepository areaRepository)
 {
     this.companyRepository                         = companyRepository;
     this.paymentTermRepository                     = paymentTermRepository;
     this.businessLegalStatusRepository             = businessLegalStatusRepository;
     this.bpRatingTypeRepository                    = bpRatingTypeRepository;
     this.businessPartnerRepository                 = businessPartnerRepository;
     this.employeeRepository                        = employeeRepository;
     this.occupationTypeRepository                  = occupationTypeRepository;
     this.businessPartnerCompanyRepository          = businessPartnerCompanyRepository;
     this.countryRepository                         = passportCountryRepository;
     this.businessSegmentRepository                 = businessSegmentRepository;
     this.businessPartnerSubTypeRepository          = businessPartnerSubTypeRepository;
     this.phoneTypeRepository                       = phoneTypeRepository;
     this.addressTypeRepository                     = addressTypeRepository;
     this.marketingChannelRepository                = marketingChannelRepository;
     this.businessPartnerRelationshipTypeRepository = businessPartnerRelationshipTypeRepository;
     this.regionRepository    = regionRepository;
     this.subRegionRepository = subRegionRepository;
     this.cityRepository      = cityRepository;
     this.areaRepository      = areaRepository;
 }
 public PhoneTypeApiController(IPhoneTypeRepository dbRepository)
 {
     _dbRepository = dbRepository;
 }
Example #7
0
 public PhoneTypeService(IPhoneTypeRepository repository)
 {
     _repository = repository;
 }
 public ReportingPartyController(IReportingPartyRepository dbReportingPartyRepository,
                                 IPhoneTypeRepository dbPhoneTypeRepository)
 {
     _dbReportingPartyRepository = dbReportingPartyRepository;
     _dbPhoneTypeRepository      = dbPhoneTypeRepository;
 }