Esempio n. 1
0
        public bool UpdateSettings(string key, string value)
        {
            var setting = BlogSettings.Single(s => s.KeyName == key);

            if (setting != null)
            {
                setting.KeyValue = value;
                _context.SubmitChanges();
                return(true);
            }
            return(false);
        }