public void UpdateITAssetsDB(ITAssetsDataSet aITAssetsDataSet) { try { aITAssetsTableAdapter = new ITAssetsDataSetTableAdapters.itassetsTableAdapter(); aITAssetsTableAdapter.Update(aITAssetsDataSet.itassets); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "IT Assets Class // Update IT Assets DB " + Ex.Message); } }
public ITAssetsDataSet GetITAssetsInfo() { try { aITAssetsDataSet = new ITAssetsDataSet(); aITAssetsTableAdapter = new ITAssetsDataSetTableAdapters.itassetsTableAdapter(); aITAssetsTableAdapter.Fill(aITAssetsDataSet.itassets); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "IT Assets Class // Get IT Assets Info " + Ex.Message); } return(aITAssetsDataSet); }