public void UpdateWorkTaskDepartmentDB(WorkTaskDepartmentDataSet aWorkTaskDepartmentDataSet) { try { aWorkTaskDepartmentTableAdapter = new WorkTaskDepartmentDataSetTableAdapters.worktaskdepartmentTableAdapter(); aWorkTaskDepartmentTableAdapter.Update(aWorkTaskDepartmentDataSet.worktaskdepartment); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Work Task Class // Update Work Task Department DB " + Ex.Message); } }
public WorkTaskDepartmentDataSet GetWorkTaskDepartmentInfo() { try { aWorkTaskDepartmentDataSet = new WorkTaskDepartmentDataSet(); aWorkTaskDepartmentTableAdapter = new WorkTaskDepartmentDataSetTableAdapters.worktaskdepartmentTableAdapter(); aWorkTaskDepartmentTableAdapter.Fill(aWorkTaskDepartmentDataSet.worktaskdepartment); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Work Task Class // Get Work Task Department Info " + Ex.Message); } return(aWorkTaskDepartmentDataSet); }