public static bool UpdatePwd(string pwd) { settingList = DataTableToList(dal.GetList("").Tables[0]); Model.TB_Setting hiddenSet = settingList.Find(x => x.SetName.ToLower() == "pwd"); hiddenSet.SetValue = pwd; return(dal.Update(hiddenSet)); }
public static bool ShowAllData(bool isShowAll) { settingList = DataTableToList(dal.GetList("").Tables[0]); Model.TB_Setting hiddenSet = settingList.Find(x => x.SetName.ToLower() == "showall"); hiddenSet.SetValue = isShowAll.ToString(); return(dal.Update(hiddenSet)); }