Exemple #1
0
        public BlogSetting GetSettingsObj()
        {
            if (strUtil.IsNullOrEmpty(this.Settings))
            {
                return(new BlogSetting());
            }
            BlogSetting s = Json.Deserialize <BlogSetting>(this.Settings);

            s.SetDefaultValue();
            return(s);
        }
Exemple #2
0
        public BlogSetting GetSettingsObj()
        {
            if (strUtil.IsNullOrEmpty(this.Settings))
            {
                return(new BlogSetting());
            }
            BlogSetting s = JSON.ToObject <BlogSetting>(this.Settings);

            s.SetDefaultValue();
            return(s);
        }