private void WorkerAssignJob_DoWork(object sender, DoWorkEventArgs e) { // Executes when RunWorkerAsync() is called List <EmployeeJobAssign> dataReceived = new EmployeeJobAssignData().GetAssignJobList(); //change for other all e.Result = dataReceived; }
private void WorkerJobStatus_DoWork(object sender, DoWorkEventArgs e) { List <EmployeeJobAssign> dataReceived = new EmployeeJobAssignData().GetAssignJobListForEmployee(n.employeeId); e.Result = dataReceived; }