internal static IList <SETTING> FindAllSetting() { using (IDalSetting dal = new DalSetting()) { return(dal.GetAllSetting()); } }
internal static string FindSettingValueByName(string name) { using (IDalSetting dal = new DalSetting()) { SETTING val = dal.GetSettingValueByName(name); return(val.valueSetting); } }
internal static bool CheckIfNameExist(SETTING setting) { using (IDalSetting dal = new DalSetting()) { bool result = false; List <string> nameList = dal.GetAllSetting().Select(n => n.nameSetting.ToLower()).ToList(); if (nameList.Contains(setting.nameSetting.ToLower())) { result = true; } return(result); } }