public void UpdateDepartmentProductionEmailDB(DepartmentProductionEmailDataSet aDepartmentProductionEmailDataSet) { try { aDepartmentProductionEmailTableAdatper = new DepartmentProductionEmailDataSetTableAdapters.departmentproductionemailTableAdapter(); aDepartmentProductionEmailTableAdatper.Update(aDepartmentProductionEmailDataSet.departmentproductionemail); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Department Class // Get Department Production Email Info " + Ex.Message); } }
public DepartmentProductionEmailDataSet GetDepartmentProductionEmailInfo() { try { aDepartmentProductionEmailDataSet = new DepartmentProductionEmailDataSet(); aDepartmentProductionEmailTableAdatper = new DepartmentProductionEmailDataSetTableAdapters.departmentproductionemailTableAdapter(); aDepartmentProductionEmailTableAdatper.Fill(aDepartmentProductionEmailDataSet.departmentproductionemail); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Department Class // Get Department Production Email Info " + Ex.Message); } return(aDepartmentProductionEmailDataSet); }