public void UpdateTrailerBodyDamageDB(TrailerBodyDamageDataSet aTrailerBodyDamageDataSet) { try { aTrailerBodyDamageTableAdapter = new TrailerBodyDamageDataSetTableAdapters.trailerbodydamageTableAdapter(); aTrailerBodyDamageTableAdapter.Update(aTrailerBodyDamageDataSet.trailerbodydamage); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Trailer Body Damage Class // Update Trailer Body Damage DB " + Ex.Message); } }
public TrailerBodyDamageDataSet GetTrailerBodyDamageInfo() { try { aTrailerBodyDamageDataSet = new TrailerBodyDamageDataSet(); aTrailerBodyDamageTableAdapter = new TrailerBodyDamageDataSetTableAdapters.trailerbodydamageTableAdapter(); aTrailerBodyDamageTableAdapter.Fill(aTrailerBodyDamageDataSet.trailerbodydamage); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Trailer Body Damage Class // Get Trailer Body Damage Info " + Ex.Message); } return(aTrailerBodyDamageDataSet); }