public void UpdateITAssetAssignmentDB(ITAssetAssignmentDataSet aITAssetAssignmentDataSet) { try { aITAssetAssignmentTableAdapter = new ITAssetAssignmentDataSetTableAdapters.itassetassignmentTableAdapter(); aITAssetAssignmentTableAdapter.Update(aITAssetAssignmentDataSet.itassetassignment); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "IT Assets Class // Get IT Asset Assignment Info " + Ex.Message); } }
public ITAssetAssignmentDataSet GetITAssetAssignmentInfo() { try { aITAssetAssignmentDataSet = new ITAssetAssignmentDataSet(); aITAssetAssignmentTableAdapter = new ITAssetAssignmentDataSetTableAdapters.itassetassignmentTableAdapter(); aITAssetAssignmentTableAdapter.Fill(aITAssetAssignmentDataSet.itassetassignment); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "IT Assets Class // Get IT Asset Assignment Info " + Ex.Message); } return(aITAssetAssignmentDataSet); }