private void WorkerTraining_DoWork(object sender, DoWorkEventArgs e) { // Executes when RunWorkerAsync() is called List<Training> dataReceived = new TrainingData().GetAllEmployeeTraining(); //change for other all e.Result = dataReceived; }
private void WorkerTraining_DoWork(object sender, DoWorkEventArgs e) { List<Training> dataReceived = new TrainingData().GetEmployeeTrainingEmployee(n.employeeId); e.Result = dataReceived; }