public ActionsService(IActionsResposit actionsService, IStaffResposit staffResposit, IJobresposit jobresposit, IJobactionResposit jobactionResposit) { _baseRepository = actionsService; _actionsService = actionsService ?? throw new ArgumentNullException(nameof(actionsService)); _staffResposit = staffResposit ?? throw new ArgumentNullException(nameof(staffResposit)); _jobresposit = jobresposit ?? throw new ArgumentNullException(nameof(jobresposit)); _jobactionResposit = jobactionResposit ?? throw new ArgumentNullException(nameof(jobactionResposit)); }
public JobService(IJobresposit jobresposit, IStaffService staffService, IRoleResposit roleResposit ) { _jobresposit = jobresposit ?? throw new ArgumentNullException(nameof(jobresposit)); _staffService = staffService ?? throw new ArgumentNullException(nameof(staffService)); _roleResposit = roleResposit ?? throw new ArgumentNullException(nameof(roleResposit)); }
public StaffService(IStaffResposit staffResposit, IJobresposit jobresposit, IRoleResposit roleResposit, IEntrysResposit entrysResposit, IProcessStepRecordResposit processStepRecordResposit, ILeaveOfficeResposit leaveOfficeResposit) { _staffResposit = staffResposit ?? throw new ArgumentNullException(nameof(staffResposit)); _jobresposit = jobresposit ?? throw new ArgumentNullException(nameof(jobresposit)); _roleResposit = roleResposit ?? throw new ArgumentNullException(nameof(roleResposit)); _entrysResposit = entrysResposit ?? throw new ArgumentNullException(nameof(entrysResposit)); _processStepRecordResposit = processStepRecordResposit ?? throw new ArgumentNullException(nameof(processStepRecordResposit)); _leaveOfficeResposit = leaveOfficeResposit ?? throw new ArgumentNullException(nameof(leaveOfficeResposit)); }