public PDistributorController(IPDistributorService pdisService, IRepresentativeService repService, IAccountService accountService,
                               IStaffService staffService, IAssignmentService assigmentService)
 {
     this._pdistributorService = pdisService;
     _representativeService    = repService;
     _accountService           = accountService;
     _staffService             = staffService;
     _assigmentService         = assigmentService;
 }
 public ContractController(IContractService _serviceContract, IDistributorService _serviceDistributor, IStaffService _serviceStaff,
                           IPDistributorService _servicePDis, IRepresentativeService _serviceRep)
 {
     this.con_Service   = _serviceContract;
     this.dis_Service   = _serviceDistributor;
     this.staff_Service = _serviceStaff;
     this.pDis_Service  = _servicePDis;
     this.rep_Service   = _serviceRep;
 }
 public ContractService(IUnitOfWork _unitOfWork, IRepresentativeService _serviceRep, IDistributorService _serviceDis, IAccountService _serviceAccount)
 {
     uow             = _unitOfWork;
     repo_con        = uow.Repository <Contract>();
     repo_dis        = uow.Repository <Distributor>();
     repo_pDis       = uow.Repository <PotentialDistributor>();
     repo_rep        = uow.Repository <Representative>();
     service_rep     = _serviceRep;
     service_dis     = _serviceDis;
     service_account = _serviceAccount;
 }
Example #4
0
 public HomeController(ILogger <HomeController> logger)
 {
     _logger = logger;
     _representativeService = new RepresentativeService();
 }
Example #5
0
 public RepresentativeController(IRepresentativeService representativeService, IUnitOfWork unitOfWork, IMapper mapper)
 {
     _representativeService = representativeService;
     _unitOfWork            = unitOfWork;
     _mapper = mapper;
 }
Example #6
0
 public RepresentativesController(RepresentativeContext context)
 {
     _context = context;
     _representativeService = new RepresentativeService();
 }