Example #1
0
 public JobController(
     IMapper mapper,
     IGetAllJobsUseCase getAllJobsUseCase,
     IGetOneJobUseCase getOneJobUseCase,
     IAddJobUseCase addJobUseCase,
     IUpdateJobUseCase updateJobUseCase
     )
 {
     _mapper            = mapper;
     _getAllJobsUseCase = getAllJobsUseCase;
     _getOneJobUseCase  = getOneJobUseCase;
     _addJobUseCase     = addJobUseCase;
     _updateJobUseCase  = updateJobUseCase;
 }
Example #2
0
 public JobController(
     ICreateJobUseCase createJobUseCase, CreateJobPresenter createJobPresenter,
     IUpdateJobUseCase updateJobUseCase, UpdateJobPresenter updateJobPresenter,
     IDeleteJobUseCase deleteJobUseCase, DeleteJobPresenter deleteJobPresenter,
     IGetAllJobsUseCase getAllJobsUseCase, GetAllJobPresenter getAllJobPresenter)
 {
     this.createJobUseCase   = createJobUseCase;
     this.createJobPresenter = createJobPresenter;
     this.updateJobUseCase   = updateJobUseCase;
     this.updateJobPresenter = updateJobPresenter;
     this.deleteJobUseCase   = deleteJobUseCase;
     this.deleteJobPresenter = deleteJobPresenter;
     this.getAllJobsUseCase  = getAllJobsUseCase;
     this.getAllJobPresenter = getAllJobPresenter;
 }