public DualAppShortcutSetting GetSettings(int appID) { if (appID == 0) { throw new ArgumentNullException("appID"); } //Retrieve Settings DualAppShortcutSetting settings = etlDAL.GetDualAppSettings(appID); if (settings == null) { throw new Exception("Settings does not exist for application - " + appID.ToString()); } return(settings); }
private void button2_Click(object sender, RoutedEventArgs e) { try { MGRE.ETL.Data.Contracts.IETLDAL etlDAL = new Data.ETLData(); //ETLExportBO bo = new ETLExportBO(etlDAL); //bo.RunExportNow(importName, "deanc"); DualAppBO bo = new DualAppBO(etlDAL); DualAppShortcutSetting settings = bo.GetSettings(127); } catch (MGREException vex) { MGRELog.Write(vex); //throw new FaultException<MGREExceptionData>(vex.AppError, new FaultReason(vex.Message)); } catch (Exception ex) { MGRELog.Write(ex); throw; } }