public void UpdateAssetMainDB(AssetMainDataSet aAssetMainDataSet) { try { aAssetMainTableAdapter = new AssetMainDataSetTableAdapters.assetmainTableAdapter(); aAssetMainTableAdapter.Update(aAssetMainDataSet.assetmain); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Asset Class // Get Asset Main Info " + Ex.Message); } }
public AssetMainDataSet GetAssetMainInfo() { try { aAssetMainDataSet = new AssetMainDataSet(); aAssetMainTableAdapter = new AssetMainDataSetTableAdapters.assetmainTableAdapter(); aAssetMainTableAdapter.Fill(aAssetMainDataSet.assetmain); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Asset Class // Get Asset Main Info " + Ex.Message); } return(aAssetMainDataSet); }