Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }