public void UpdateAssetTypeDB(AssetTypeDataSet aAssetTypeDataSet) { try { aAssetTypeTableAdapter = new AssetTypeDataSetTableAdapters.assettypeTableAdapter(); aAssetTypeTableAdapter.Update(aAssetTypeDataSet.assettype); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Asset Class // Update Asset Type DB " + Ex.Message); } }
public AssetTypeDataSet GetAssetTypeInfo() { try { aAssetTypeDataSet = new AssetTypeDataSet(); aAssetTypeTableAdapter = new AssetTypeDataSetTableAdapters.assettypeTableAdapter(); aAssetTypeTableAdapter.Fill(aAssetTypeDataSet.assettype); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Asset Class // Get Asset Type Info " + Ex.Message); } return(aAssetTypeDataSet); }