private static string getConfigValue(string value) { string RndoKey = ""; DataSet dsConfigSettings = new DataSet(); SYS_TeacherActivityFeedback_BLogic objGetConfigValue = new SYS_TeacherActivityFeedback_BLogic(); dsConfigSettings = objGetConfigValue.BAL_Select_IsActivityFeedback_Settings(value); if (dsConfigSettings.Tables.Count > 0) { if (dsConfigSettings.Tables[0].Rows.Count > 0) { RndoKey = dsConfigSettings.Tables[0].Rows[0]["value"].ToString(); } } return(RndoKey); }
/// <summary> /// Method will beused to get relevant email address. /// </summary> /// <returns>Array list</returns> protected ArrayList GetEmailAddress() { DataSet ds = new DataSet(); ArrayList alistContacts = new ArrayList(); BLogicActivityFeedBack = new SYS_TeacherActivityFeedback_BLogic(); ds = BLogicActivityFeedBack.BAL_Select_Report_Contact("Admin"); if (ds != null & ds.Tables.Count > 0) { if (ds.Tables[0].Rows.Count > 0) { for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { alistContacts.Add(ds.Tables[0].Rows[i]["Email"].ToString()); } } } return(alistContacts); }