public EmployeeController(IEmpDBContext empDBContext, IEmployeeService empService, ICityService cityService, IStateService stateService, IJobService jobService, IDepartmentService departmentService, IWorkingDayService workingdaysService, IShiftService shiftsService) { db = empDBContext; _empService = empService; _stateService = stateService; _cityService = cityService; _jobService = jobService; _departmentService = departmentService; _workingdayService = workingdaysService; _shiftService = shiftsService; }
public ShiftsService(IEmpDBContext shiftDBContext) { _dataService = shiftDBContext; }
public WorkingdaysService(IEmpDBContext workingdayDBContext) { _dataService = workingdayDBContext; }
public JobService(IEmpDBContext jobDBContext) { _dataService = jobDBContext; }
public DepartmentService(IEmpDBContext departmentDBContext) { _dataService = departmentDBContext; }
public CityService(IEmpDBContext CityDBContext) { _dataService = CityDBContext; }
//to initialize the database connection, using the ctor public EmployeeService(IEmpDBContext empDBContext) { _dataService = empDBContext; }
public StateService(IEmpDBContext StateDBContext) { _dataservice = StateDBContext; }