Exemplo n.º 1
0
        public ContentSetting GetSettingsObj()
        {
            if (strUtil.IsNullOrEmpty(this.Settings))
            {
                return(new ContentSetting());
            }
            ContentSetting s = JSON.ToObject <ContentSetting>(this.Settings);

            s.SetDefaultValue();
            return(s);
        }
Exemplo n.º 2
0
        public ContentSetting GetSettingsObj()
        {
            if (strUtil.IsNullOrEmpty(this.Settings))
            {
                return(new ContentSetting());
            }
            ContentSetting s = Json.Deserialize <ContentSetting>(this.Settings);

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